Python Pratical List - 2024-25
Python Pratical List - 2024-25
8. Python program to find the largest number among the three input numbers
9. Accept a number from keyboard and test whether the given number is even or odd.
13. Write a Python program to construct the following pattern, using a nested for
loop
1
12
123
1234
12345
17. write a program to create two different sets and apply following functions.
∙ add()
∙ Clear()
∙ Difference()
∙ Intersection()
∙ Union()
∙ Issubset()
∙ Symmetric_differencce()
∙ Isdissjoint()
∙ Remove()
∙ Update()
18. Write a program to perform arithmetic operations (Add, Subtract, Multiply, divide) using
different functions with arguments and return values.
19. Write a program to swap the value of two variables using lambda function.
20. Write a program to create Employee class and print its information by creating its object.
21. Write a program to use default constructor to initialize the values of variable of employee class.
22. Write a program to use parameterized constructor to initialize the values of variable of salary class.
24 Write a program to get student marks and print the percentage using class methods.
26 Write a program to display student information, subject marks and final result using
multilevel inheritance.
27 Write a program to calculate student marks with sports marks and display percentage using
multiple inheritance.
28 Write a program to display collage information and course information using hierarchical
inheritance.
31 Write a program to create personal module and use that in different two programs to display
personal detail.
∙ Random()
∙ Randrange()
∙ Randint()
∙ Choice()
∙ shuffle()
33 Write a program to use regexp(re) module for following methods with different meta characters.
∙ Findall()
∙ Search()
∙ Compile()
∙ Split()
∙ Sub()