PP Practical Syllabus (E-Next - In)
PP Practical Syllabus (E-Next - In)
List of Practical
1. Write the program for the following:
a. Create a program that asks the user to enter their name and their age. Print out a
message addressed to them that tells them the year that they will turn 100 years
old.
b. Enter the number from the user and depending on whether the number is even or
odd, print out an appropriate message to the user.
c. Write a program to generate the Fibonacci series.
d. Write a function that reverses the user defined value.
e. Write a function to check the input value is Armstrong and also write the
function for Palindrome.
f. Write a recursive function to print the factorial for a given number.
****
*********
*******
and write a program that prints out all the elements of the list that are less than 5.
14
https://E-next.in
a. Write a program that takes two lists and returns True if they have at least one
common member.
b. Write a Python program to print a specified list after removing the 0th, 2nd, 4th
and 5th elements.
c. Write a Python program to clone or copy a list
Now open a new file and save it in the same directory. You should now be able
to import your own module like this:
import geometry
15
https://E-next.in
Try and add print dir(geometry) to the file and run it.
16
https://E-next.in