Python Programming Assignments – Class 8
(CBSE)
1. Write a Python program to print your name, class, section, and school name on separate lines.
2. Write a program that takes two numbers as input and displays their addition, subtraction,
multiplication, and division.
3. Write a program to input a number and check whether it is even or odd.
4. Write a program to input three numbers and print the greatest among them.
5. Write a program to display the multiplication table of a number entered by the user (up to 10).
6. Write a program to input a number N and find the sum of first N natural numbers using a loop.
7. Write a program to input a number and reverse it.
8. Write a program to input a string and count the number of vowels in it.
9. Write a program to create a list of 5 integers and print the sum, maximum, and minimum values.
10. Write a menu-driven program to find the square or cube of a number or exit the program.