1. Write a program to display the numbers from 1 to 10.
2. Write a program to display the factorial of a number.
3.Write a program to display the biggest of 3 numbers.
4.Write a program to check whether a number is even or
odd.
5.Write a program to check if a given character is a
vowel,number or else.
6.Write a program to convert number to number names.
7.Calculate the grade of students whose roll numbers and
3 subject marks each out of 100 is given. Grading is based
on average marks.
Grade >=80 : A Grade>=70 : B Grade>=60 : C Grade>=50 :D
Grade>=40 : P Grade< 40: F
8.A movie theatre has di erent ticket prices based on age:
Adult(age 13-64): 15$
Child(age 0-12): 10$
Senior(age 65+): 12$
Write a program to determine the ticket price based on
age:
9.Write a while loop to simulate a countdown from 10 to 1
and display “Happy New Year”.
10.Write a while loop that keeps asking the user for a
positive number,i.e if the user enters a negative or zero,
then ask for more positive numbers.
11.A user is given 3 chances to enter the ATM pin.If they
enter the ATM pin correctly within 3 attempts, then print
“ACCESS GRANTED”. If the user fails to do so, their card is
blocked.
12. A teacher wants to calculate the average marks of a
given student in class. Input the marks of each student
and stop when -1 is entered by the user for one student.
Write the python code for the problem above.
13.Write a python program to find whether a given number
is an Armstrong number or not.
14.Write a program to display a menu for calculating the
area and perimeter of a circle.
15.Write a program that reads 3 numbers and prints them
in ascending order.
16.Write a program that adds all the odd numbers until
the number n and displays the sum.
17.Write a program to check if a number is a prime
number or not.
18.Write a python program to find the sum of n natural
numbers.
19.Check if the given number is a Palindrome number or
not.
20.Write a python program to find the reverse of the given
number.
21.Find the sum of digits of a given number.