Class 9
Artificial Intelligence
Python Practice questions
1. Write a program to accepts two integers and print their sum.
2. Write a program that accepts the radius of a circle and prints
its area.
3.
3. Write a program that accepts base and height and calculate
the area of a triangle.
4. Write a program that inputs a student’s marks in three
subjects (out of 100) and prints the percentage marks.
5. Write a program to compute the area of square and triangle.
6. Write a program to calculate simple interest.
7. Write a program to read two numbers and prints their
quotient and reminder.
8. Write a program that accepts weight in Kg and height in
meters and calculate the BMI.
9. Write a program that reads the number n and print the value
of n², n³ and n⁴.
10. Write a program to accept the marks of five subjects and
calculate the average marks.