PWP COMMON CODES
PWP COMMON CODES
Summer 2024
1010101
10101
101
Summer 2022
Winter 2023
1. Write python program to display output like.
2
468
10 12 14 16 18
2. Write python program using module, show how to write and use
module by importing it.
3. WAP to read contents of first.txt file and write same content in
second.txt file.
4. Write a program illustrating use of user defined package in python.
5. Write a program illustrating use of user defined package in python.
6. Write program to implement concept of inheritance in python.
Winter 2022
1. Write any 4 methods of dictionary
2. Write python program to illustrate if else ladder
3. Write python code for finding greatest among four numbers.
4. Illustrate with example method overloading.
5. Write python code to read contents of abc.txt and write same content
to pqr.txt.
6. Write python program to perform following operations on set.
v) Create set
vi) Access set elements
vii) Update set
viii) Delete set.
7. Design a class student with data members; Name, roll number address.
Create suitable method for reading and printing students details.
8. Create a parent class named Animals and a child class Herbivorous
which will extend the class Animal. In the child class Herbivorous over
side the method feed (). Create a object of the class Herbivorous and
call the method feed.
Common Questions: