0% found this document useful (0 votes)
3 views22 pages

Python File (2)

Uploaded by

Nimit Khattar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views22 pages

Python File (2)

Uploaded by

Nimit Khattar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

UNIVERSITY SCHOOL OF AUTOMATION & ROBOTICS (USAR)

Guru Gobind Singh Indraprastha University, East Delhi Campus,


Surajmal Vihar, New Delhi - 110092

Programming In Python​
(ICT - 160)

Submitted to: ​ ​ ​ ​ ​ ​ Submitted By:


Ms. Geetanshi Pal​​ ​ ​ ​ ​ Name:- Mohd Shehjan
Asst. Professor, USAR​ ​ ​ ​ ​ Batch:- IIOT B2
​ ​ ​ ​ ​ ​ ​ ​ Enrollment No: 09719051724
INDEX

S.no. Name of the Program Page No Sign

1 WAP to perform string manipulation 4-5


operations using sets of pre defined
functions such as:
a)​ Find()
b)​ Upper()
c)​ Len()
d)​ Max() and Min()
e)​ Fetching a specific content
from the String

2 WAP to perform to test and check 6-7


the mathematical functions such as:
a)​ Ceil()
b)​ Sqrt()
c)​ Pow()
d)​ Factorial()

3 WAP that receive a number as input 8


from user and returns if it odd or
even number

4 WAP that receive input from the 9


user to calculate the Area of
Triangle

5 WAP that receive input from the 10


user to calculate the Area of Square

6 WAP that receive input from the 11


user to calculate the Area of
Rectangle

7 WAP to check if the input string is 12


Palindrome or not

8 WAP that receives marks of a 13


student for a subject as input and
assign the grades A||B||C||D||E||F

9 WAP to compute the GCD of the 14


two numbers.

10 WAP to check if the given number is 15


Armstrong or not.

11 WAP to check if the input year is a 16


leap year or not

12 WAP to compute the factorial of a 17


given number.

13 WAP to generate Fibonacci series 18


till 100

14 WAP to print a multiplication table of 19


a given number

15 WAP to create a two list and 20-21


perform the following operations:
1)​ Add the Elements of the two
list
2)​ Compare the contents of the
two list
3)​ To find the number of the
elements in the list
4)​ Sort the elements of the list
5)​ Reverse the contents of the
list

16 WAP to create and display the 22


content of the tuple. Initialize the
tuple with the name of the cities.
Display content of the tuple along
with name/index positions of the
cities
1) WAP to perform string manipulation operations using sets of
pre defined functions such as:
a) Find()
b) Upper()
c) Len()
d) Max() and Min()
e) Fetching a specific content from the String

INPUT:-
OUTPUT:-
2) WAP to perform to test and check the mathematical functions
such as:
a)​Ceil()
b)​Sqrt()
c)​Pow()
d)​Factorial()

INPUT:-
OUTPUT:-
3) WAP that receive a number as input from user and returns if it odd
or even number

INPUT:-

OUTPUT:-
4) WAP that receive input from the user to calculate the Area of
Triangle

INPUT:-

OUTPUT:-
5) WAP that receive input from the user to calculate the Area of
Square

INPUT:-

OUTPUT:-
6) WAP that receive input from the user to calculate the Area of
Rectangle

INPUT:-

OUTPUT:-
7) WAP to check if the input string is Palindrome or not

INPUT:-

OUTPUT:-
8) WAP that receives marks of a student for a subject as input
and assign the grades A||B||C||D||E||F

INPUT:-

OUTPUT:-
9) WAP to compute the GCD of the two numbers.
INPUT:-

OUTPUT:-
10) WAP to check if the given number is Armstrong or not.
INPUT:-

OUTPUT:-
11) WAP to check if the input year is a leap year or not
INPUT:-

OUTPUT:-
12) WAP to compute the factorial of a given number.
INPUT:-

OUTPUT:-
13) WAP to generate Fibonacci series till 100
INPUT:-

OUTPUT:-
14) WAP to print a multiplication table of a given number

INPUT:-

OUTPUT:-
15) WAP to create a two list and perform the following
operations:
a)​Add the Elements of the two list
b)​Compare the contents of the two list
c)​To find the number of the elements in the list
d)​Sort the elements of the list
e)​Reverse the contents of the list

INPUT:-
OUTPUT:-
16) WAP to create and display the content of the tuple. Initialize
the tuple with the name of the cities. Display content of the tuple
along with name/index positions of the cities.

INPUT:-

OUTPUT:-

You might also like