Python Practical Questions – Class IX
1. Write a program to print “Hello, World!”.
2. Write a program to take a number from the user and print whether it is even or odd.
3. Write a program to add two numbers entered by the user.
4. Write a program to find the largest of two numbers.
5. Write a program to find the largest of three numbers.
6. Write a program to check whether a number is positive, negative, or zero.
7. Write a program to print numbers from 1 to 10 using a loop.
8. Write a program to print the multiplication table of a number.
9. Write a program to calculate the sum of first n natural numbers.
10. Write a program to check whether a number is a prime number.
11. Write a program to find the factorial of a number.
12. Write a program to reverse a given number.
13. Write a program to check whether a number is a palindrome.
14. Write a program to count the number of digits in a number.
15. Write a program to print all even numbers between 1 and 50.
16. Write a program to find the sum of digits of a number.
17. Write a program to check whether a year is a leap year.
18. Write a program to convert temperature from Celsius to Fahrenheit.
19. Write a program to find the area of a circle.
20. Write a program to swap two numbers using a third variable.