PWP Practical Questions
PWP Practical Questions
1. Write a Python program to display your name and the version of Python using interactive mode.
6. Create a tuple and find the minimum, maximum and repeated number from it.
7. Write a Python program to create a set, add member(s) in a set and remove one item from set.
9. Write a Python function that accepts a string and calculates the number of upper-case letters and
lower-case letters.
10. Write a Python function that takes a number as a parameter and checks whether the number is prime
or not.
11. Write a Python program to create a user-defined module that will ask your college name and will
12. Write a Python program to create two matrices and perform addition, subtraction, multiplication and
13. Write a Python program to create a class 'Degree' having a method 'getDegree' that prints "I got a
degree". It has two subclasses namely 'Undergraduate' and 'Postgraduate' each having a method with
the same name that prints "I am an undergraduate" and "I am a postgraduate" respectively. Call the
14. Python program to read and print student's information using two classes using simple inheritance.
15. Write a Python program to create user-defined exception that will check whether the password is
correct or not.