Practical-File-Questions-for-Python-Lab
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.
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.
10.Write a Python program to print the cube of all numbers from 1 to a given number.
12.Write a program to swap two numbers without using a temporary variable in python.
17.Write a Python program to Find the largest item from a given list.
18.Program to read the content of file and display the total number of consonants,
19.Program to create binary file to store Rollno and Name, Search any Rollno and display
20.Program to create binary file to store Rollno,Name and Marks and update marks of
entered Rollno.