Practical File Questions for Python Lab
1. Write a Python code to Input any number from user and calculate factorial of a number.
2. Write a Python code to Input any number from user and check it is Prime no. or not.
3. Write a program to find sum of elements of List recursively.
4. Write a program to calculate the nth term of Fibonacci series.
5. Write a Python code to display numbers from a list divisible by 5.
6. write a Python code to create a new list such that the latest list should contain odd
numbers from the first list and even numbers from the second list.
7. Write a Python code to Get each digit from a number in the reverse order.
8. Write a Python code to Print multiplication table from 1 to 10.
9. Write a Python code to Print a downward half-pyramid pattern of stars.
[Link] a Python program to print the cube of all numbers from 1 to a given number.
[Link] a python program to calculate compound interest.
[Link] a program to swap two numbers without using a temporary variable in python.
[Link] a python program to convert celsius to fahrenheit using functions.
[Link] a python program to remove duplicates from a list.
[Link] a python program to calculate simple interest.
[Link] a python program to search any word in given string/sentence.
[Link] a Python program to Find the largest item from a given list.
[Link] to read the content of file and display the total number of consonants,
uppercase, vowels and lower case characters.
[Link] to create binary file to store Rollno and Name, Search any Rollno and display
name if Rollno found otherwise “Rollno not found”.
[Link] to create binary file to store Rollno,Name and Marks and update marks of
entered Rollno.