PP Lab Set2 Questions
PP Lab Set2 Questions
1.a.Write Python programs for swapping two numbers, conversion of one data type into
another.
b. Develop a Class in Python to demonstrate the concept of constructors, destructor, data
hiding, super() method, class() method, and static and instance methods.
.
3.Write programs to generate Fibonacci series; prime numbers; perfect numbers; cyclic prime
numbers.
5.Write a program to estimate the age of an employee till today’s date in terms of years,
keyword
11. Write Python code with the use of underscores in different ways to gain the knowledge
12. Write a Python program to read the contents of a file line by line and print the same on to
the display.
13. Write a Python application to select records either in ascending order or descending order
using MySQL Order By clause and using Python MySQL Connector and print them in the
required order.
14. Do experiment on setting up of Flask development environment.