0% found this document useful (0 votes)
13 views

Practical-File-Questions-for-Python-Lab

The document contains a list of practical file questions for a Python lab, covering various programming tasks. These tasks include calculating factorials, checking for prime numbers, generating Fibonacci series, and manipulating lists. Additional exercises involve file handling, interest calculations, and pattern printing.

Uploaded by

faraz212830
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Practical-File-Questions-for-Python-Lab

The document contains a list of practical file questions for a Python lab, covering various programming tasks. These tasks include calculating factorials, checking for prime numbers, generating Fibonacci series, and manipulating lists. Additional exercises involve file handling, interest calculations, and pattern printing.

Uploaded by

faraz212830
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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.

10.Write a Python program to print the cube of all numbers from 1 to a given number.

11.Write a python program to calculate compound interest.

12.Write a program to swap two numbers without using a temporary variable in python.

13.Write a python program to convert celsius to fahrenheit using functions.

14.Write a python program to remove duplicates from a list.

15.Write a python program to calculate simple interest.

16.Write a python program to search any word in given string/sentence.

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,

uppercase, vowels and lower case characters.

19.Program to create binary file to store Rollno and Name, Search any Rollno and display

name if Rollno found otherwise “Rollno not found”.

20.Program to create binary file to store Rollno,Name and Marks and update marks of

entered Rollno.

You might also like