Basic Python Programming Practice
Questions
1. Write a program to calculate Simple Interest using the formula: SI = (P × R × T) / 100.
2. Write a program to calculate the area of a circle. Use π = 3.14 and input the radius from
the user.
3. Write a program to find the area of a rectangle. Formula: Area = length × breadth.
4. Write a program to calculate the volume of a cube. Formula: Volume = side³.
5. Write a program to calculate the volume of a cylinder. Formula: Volume = π × r² × h.
6. Write a program to convert temperature from Celsius to Fahrenheit. Formula: F = (C ×
9/5) + 32.
7. Write a program to convert distance from kilometers to miles. Use the formula: miles =
km × 0.621371.
8. Write a program to find the perimeter of a square. Formula: Perimeter = 4 × side.
9. Write a program to input marks of 5 subjects and calculate the total and average.
10. Write a program to calculate speed using the formula: Speed = Distance / Time.