Python Program Question List for PR Exam
Python Program Question List for PR Exam
Write a Python program to display Your name , age and City On the Screen.
(Take input from the user).
Write a program that takes the marks of 5 subjects and displays the grades.
Write a Python program to print all even numbers between 1 to 100 using while
loop.
- Write a Python program to create a set, add member(s) in a set and remove
one item from set and Display.
- Write a Python program to find maximum and the minimum value in a set.
- Write a Python program to find the length of a set.
12. Practical No. 11: Write python program to perform following functions on
Set: Union, Intersection, Difference, Symmetric Difference
13. Practical No. 12: Write python program to perform following operations
on the Dictionary: Create, Access, Update, Delete, Looping through
Dictionary, Create Dictionary from list
- Write Python Program to create dictionary and insert one item , delete one
item and update one item and display .
- Write a Python class that has two methods: get_String and print_String ,
get_String accept a string from the user and print_String prints the string in
upper case.
- Write a Python program to create a class to print the area of a square and a
rectangle. The class has two methods with the same name but different
number of parameters. The method for printing area of rectangle has two
parameters which are length and breadth respectively while the other method
for printing area of square has one parameter which is side of square.
18. Practical No. 24: Write a python program to implement Single inheritance
2. Multiple Inheritance 3. Multilevel inheritance
- Write Python program to read and print students information using Multilevel
inheritance. (Accept Name from user in Base Class, Accept Roll no from
user in first derived class and Accept Marks from User in Third Derived
Class. And this All info display in Third Derived Class using Method
Display())
20. Practical No. 26: Implement python program to load a CSV file into a
Pandas DataFrame and perform operations.
- Write a Python program to read and write with CSV files using pandas.
21. Practical No. 28: Write python GUI program that adds labels and buttons
to the Tkinter window
- Write GUI program to import Tkinter package and create a window and set its
title, add labels and button to the tkinter window.
22. Practical No. 15: Write Python program to demonstrate use of following
advanced functions: lambda, map, reduce