POSSIBLE LAB QUESTIONS IN PYTHON:
1. Develop a program using simple statements and expressions (exchange the values of
two
variables-Using a Temporary Variable, Without a Temporary Variable).
2. (A)Develop a program for circulate the values of n variables
(B) Develop a program to print the sum of two numbers.
3. Develop a program to implementing real-time/technical applications using Lists, Tuples.
(Items present in a library and Components of a car- operations , methods of list and
tuples).
4. Develop a program to implementing real-time/technical applications using Sets,
Dictionaries.
(Language, components of an automobile - operations, methods of sets and Dictionaries
5. Develop a program using Functions. (Factorial, Minimum number in a list).
6.(a) Develop a program distance between two points
(b) Develop a program to find whether a number is even or odd.
7. Develop a program using File handling. (word count, longest word).
8. (a)Develop programs to create a class Student with name and register number.
(b)Develop a program to create a class Rectangle to compute area and perimeter
9. Develop a program using Exception handling.(student mark range validation).
10. Develop a program using simple statements and expressions ( Using Multiplication &
Division).
11. Develop a program for Scientific problems using Conditionals and Iterative loops.
(Number
series - Generate the Fibonacci series up to n terms).
12. Develop a program to Create a list to store items available in a library and perform insert
& delete
Operations.
13. Develop a program to implementing slicing and indexing operations on a tuple of subject
names
14. Develop a program to Implement list operations for materials required in building
construction.
15. Develop a program to Create a set of languages known by employees and perform union
& intersection.
16. Develop a program to create a dictionary to store automobile components with their.
17. Develop a function to calculate the area of different shapes
18. Develop a program to count occurrences of each character in a
String.
19. Develop a program to create a class BankAccount with:
• Account number
• Customer name
• Balance
• deposit(amount)
• Add money to the account balance
• Withdraw money with a check for insufficient balance
20. Develop a program to Implement a scientific calculation using functions.
21. Develop a program to read contents from a file and display them.
22. Develop a program to Count the number of words, lines, and characters in a file.
[Link] a program to validate voter’s age (raise an exception if below 18).
24. Write a Python program using base class and multiple derived classes showing same
method but different outputs.
25. Develop a program to create a dictionary for book details (title, author, price) and
display them.
26. Develop a program to display the smallest and largest number from a list.
27. a) Develop a program to check whether a number is an Armstrong number
b) Create a pyramid pattern using *.
28. Develop a program to handle invalid input exceptions in arithmetic operations
[Link] a program to add and remove items from a set dynamically
[Link] a program to create a set difference and symmetric difference operation