0% found this document useful (0 votes)
0 views25 pages

MAIN

The document outlines a programming assignment in Python for students at the University School of Automation & Robotics. It includes a list of 16 different programming tasks, such as string manipulation, mathematical functions, and area calculations, along with instructions for input and output. Each task is designed to enhance the students' programming skills in Python.

Uploaded by

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

MAIN

The document outlines a programming assignment in Python for students at the University School of Automation & Robotics. It includes a list of 16 different programming tasks, such as string manipulation, mathematical functions, and area calculations, along with instructions for input and output. Each task is designed to enhance the students' programming skills in Python.

Uploaded by

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

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:- Simant Pandit
Asst. Professor, USAR Batch:- IIOT B2
Enrollment No: 09919051724
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 9
WAP that receive input from the user
to calculate the Area of Triangle

5 WAP that receive input from the user 10


to calculate the Area of Square

6 11
WAP that receive input from the 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 two 14


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 till 18


100

14 WAP to print a multiplication table of 19


a given number

15 WAP to create a two list and perform 20-21


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:-
WAP
6) that receive input from the user to calculate the Area of
Rectangle

INPUT:-

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

INPUT:-

OUTPUT:-
9) WAP

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:-
11)

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:-

WAP to check if the input year is a leap year or not


INPUT:-
13)

OUTPUT:-
14)

WAP to compute the factorial of a given number.


INPUT:-

OUTPUT:-

WAP to generate Fibonacci series till 100


15)

INPUT:-

OUTPUT:-

WAP to print a multiplication table of a given number


16)

INPUT:-

OUTPUT:-

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
17)

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