0% found this document useful (0 votes)
20 views1 page

PWP Practical Questions

The document contains a list of practical Python programming questions and tasks. These tasks include creating programs for basic calculations, data structures, classes, and exception handling. The questions are designed to test various programming skills and concepts in Python.

Uploaded by

khotakash955
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)
20 views1 page

PWP Practical Questions

The document contains a list of practical Python programming questions and tasks. These tasks include creating programs for basic calculations, data structures, classes, and exception handling. The questions are designed to test various programming skills and concepts in Python.

Uploaded by

khotakash955
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/ 1

PWP PRACTICAL QUESTIONS

1. Write a Python program to display your name and the version of Python using interactive mode.

2. Write a program to calculate:

a) The area of a rectangle

b) Area and perimeter of the square

3. Write a program to check if the input year is a leap year or not.

4. Write a Python program to reverse a given number.

5. Write a Python program to multiply all the items in a list.

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.

8. Write a Python program to find the highest 3 values in a dictionary.

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

display the name of the college.

12. Write a Python program to create two matrices and perform addition, subtraction, multiplication and

division operations on the matrix.

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

method by creating an object of each of the three classes.

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.

You might also like