G. B.
PANT DSEU OKHLA – I CAMPUS
Name Anand Thakur
Roll No. : 241612044013
Branch : Electronic and communication engeenering
Semester : 2nd
Subject : Python
INDEX
Sr. Name of Practical Page Date Signature of
No. No. Teacher
1 To convert the temperature from Fahrenheit to 1
Celsius using formula: F=1.8C+32 or C=5/9(F-32)
2 to convert the weight Kilogram into Pound using 2
formula: P = 2.2 * K.
3 To find the largest of three numbers. 3
4 A program in Python to check whetherthe given 4
year is a leap year or not
5 A program in Python to find the sum of digits of a 5
number.
6 A program in Python to reverse the digits of a 6
number.
7 A program in Python to print the day of week 7
using match-case statement
8 A program in Python to find the sum of first N 8
natural numbers
9 A program in Python to find the factorial of a 9
number.
10 A program in Python to checks whether the given 10
number is prime or not
11 A program in Python toprint the first N prime 11
numbers
12 A program in Python to find maximum and 12
minimum value from the list of numbers using
function.
13 A program in Python to create a function to checks 13
whether the given number is prime or not
14 A program in Python to create a function to find 14 -
the sum of digits of a number 15
15 A program in Python to create a function to 16-17
reverse the digits of a number.
16 A Python program in function to find the factorial 18
of a number using recursion.
17 A program in Python to enter a string, to find the 19
length of entered string and to reverse the entered
string.
18 A program in Python to create a file, enter the roll 20
no, and name into the file, read the file and print
the records of the file.
19 A program in Python to create a class and 21
attribute:
20 A program in Python to implement inheritance by 22
defining a parent class and 2 child classes both
inheriting the attributes of parent class.