20 Python Basic Practice Questions
1. Write a Python program to print "Hello, World!".
2. Write a program to add two numbers: 5 + 10.
3. Write a program to find the square of a number.
4. Write a program to find the cube of a number.
5. Write a program to swap two numbers.
6. Write a program to check if a number is even or odd.
7. Write a program to find the largest of two numbers.
8. Write a program to convert temperature from Celsius to Fahrenheit.
9. Write a program to calculate Simple Interest (P, R, T given).
10. Write a program to reverse a string.
11. Write a program to find the length of a string.
12. Write a program to find the sum of first 10 natural numbers.
13. Write a program to find factorial of a number.
14. Write a program to print the multiplication table of any number.
15. Write a program to print the first 5 terms of the Fibonacci series.
16. Write a program to check if a number is prime or not.
17. Write a program to find the maximum number in a list.
18. Write a program to find the sum of all elements in a list.
19. Write a program to count vowels in a string.
20. Write a program to make a simple calculator (addition, subtraction, multiplication,
division).