Class 9 Python Programming Worksheet
1. Write a program to print 'Welcome to Python Programming'.
2. Write a program to input two numbers and print their sum, difference, product, and quotient.
3. Write a program to input length and breadth and print the area and perimeter of the rectangle.
4. Write a program to input a number and check whether it is even or odd.
5. Write a program to calculate simple interest using the formula: SI = (P × R × T)/100.
6. Write a program to input a number and check if it is positive, negative, or zero.
7. Write a program to input three numbers and print the largest one.
8. Write a program to input marks and print the grade as per the following:
90 and above: A
80-89: B
70-79: C
60-69: D
Below 60: F
9. Write a program using a loop to print numbers from 1 to 10.
10. Write a program to input a number n and print the sum of the first n natural numbers.
11. Write a program to input a number and print its multiplication table up to 10.
12. Write a program to input a string and print it in reverse order.
13. Write a program to input a string and count the number of vowels in it.
14. Define a function add(a, b) that returns the sum of two numbers.
15. Write a function to calculate factorial of a number using loop.