1.
Write a Python program to find the sum of two numbers: num1 = 10, num2 = 20
2. Write a Python program to convert temperature in degree Celsius to degree Fahrenheit. If
water boils at 100 degree C and freezes as 0 degree C, use the program to find out what is
the boiling point and freezing point of water on the Fahrenheit scale.
(Hint: T(°F) = T(°C) × 9/5 + 32)
3. Write a Python program to calculate the amount payable if money has been lent on simple
interest. Principal or money lent = P, Rate of interest = R% per annum and Time = T years.
Then Simple Interest (SI) = (P x R x T)/ 100. Amount payable = Principal + SI. P, R and T are
given as input to the program.
4. Write a Python program to calculate area and perimeter of a rectangle and display it. (length
and breadth will be accepted by user).
5. Write a Python program to calculate area of a circle and display it. (radius will be accepted
by user).
6. Write a Python program which accepts the user's first and last name and print them in
reverse order with a space between them.
7. Write a Python program to display your details like name, age, address in three different
lines.
8. Write a Python program to find whether a given number (accept from the user) is even or
odd, print out an appropriate message to the user.
9. Write a program to enter two integers and perform all arithmetic operations on them.
10. Write a program to swap two numbers using a third variable.
11. Write a program to swap two numbers without using a third variable.
12. Write a program to repeat the string ‘‘GOOD MORNING” n times. Here ‘n’ is an integer
entered by the user.
13. Write a program to find average of three numbers.
14. Write a program to Print First 10 natural numbers.
15. Write a Python program to print Sum of squares of first n natural numbers.
16. Write a Python program to print all even numbers from a given range.
17. Write a Python program to print all odd numbers from a given range.
18. Write a Python program to sum of three given integers. However, if two values are equal
sum will be zero.
19. Write a Python program to print a multiplication table of the entered number.
20. Write a Python program to check the eligibility for voting in election.