0% found this document useful (0 votes)
2 views1 page

Class9 Python Worksheet

This document is a worksheet for Class 9 Python programming exercises. It includes tasks such as printing messages, performing arithmetic operations, calculating area and perimeter, checking number properties, and working with strings and functions. The exercises aim to enhance students' understanding of basic programming concepts in Python.

Uploaded by

antaraduttaroy11
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Class9 Python Worksheet

This document is a worksheet for Class 9 Python programming exercises. It includes tasks such as printing messages, performing arithmetic operations, calculating area and perimeter, checking number properties, and working with strings and functions. The exercises aim to enhance students' understanding of basic programming concepts in Python.

Uploaded by

antaraduttaroy11
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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.

You might also like