REVISION PROGRAMS FOR HALF – YEARLY PRACTICAL EXAM
SYLLABUS
Conditional Statements (if, if – else, if – elif – else, nested if – else)
Loops (for and while)
Lists in python
Question 1: Write a Python program to display the Fibonacci series up to n terms entered by the user.
The program prints the first n terms of the Fibonacci series. Each new term is the sum of the previous
two numbers.
Question 2: Write a Python program to reverse the integer entered by the user.
Question 3: Write a Python program to check whether the input number entered by the user is a
palindrome.
The program reverses the number and compares it with the original. If both are same, it is a palindrome.
Question 4: Write a Python program to input 10 numbers from the user and find their sum.
Question 5: Write a Python program to check whether the input number entered by the user is an
Armstrong number.
The program calculates the sum of cubes of digits and compares it with the original number. If equal, it is
an Armstrong number.
Question 6: Write a Python program to calculate the factorial of the number entered by the user.
Factorial of number 7 = 7*6*5*4*3*2*1
Question 7: Write a Python program to print the multiplication table of the number entered by the user.
Question 8: Write a Python program to display all factors of the number entered by the user.
The program finds all numbers that divide the given number completely.
Question 9: Make a program to calculate the bill in a restaurant. The user should be able to enter item
names and prices. Show each item with its price and the total amount.
Question 10: Write a Python program that acts like a simple ATM machine. It should allow the user to
check balance, deposit money, and withdraw money.
Question 11: Write a Python program to convert temperature from Celsius to Fahrenheit or Kelvin as per
the user’s choice.
Question12: Write a Python program to calculate Simple Interest or Compound Interest based on the
user’s choice.
Question 13: Write a Python program to count the number of vowels in a string.
Question 14: Write a Python program to count uppercase and lowercase letters in a string.
Question 15: Write a Python program to swap two numbers entered by the user.
Question 16: Write a Python program to check whether a number entered by the user is prime or not.
Question 17: Write a Python program to check whether a year entered by the user is a leap year or not.
Question 18: Write a Python program to create a list with n numbers, where n is input by the user.
a) Take another number from the user and add it to the list.
b) Sort the list in ascending order.
c) Display the first 3 elements of the list.
Question 19: Write a Python program to manage your monthly budgets for April and May.
a) Input the budgets for April and May in two separate lists and merge them.
b) Sort the combined list in descending order.
c) Display the highest budget from the combined list.
Question 20: Write a Python program to manage a friend list from your classmates.
a) Remove the friend who scored the highest marks from the list and display it.
b) Count how many friends are left and display the result.
c) Replace the second friend with your name, clear the list, and display it after each operation.