Python_Practical_Programs_Complete
Python_Practical_Programs_Complete
Sample Output:
Enter first number: 5
Enter second number: 7
Sum: 12
2. Write a program that accepts the radius of a circle and prints its area.
Sample Output:
Enter the radius of the circle: 3
Area of the circle: 28.27
3. Write a program that accepts base and height and calculates the area of a triangle.
Sample Output:
Enter base of the triangle: 10
Enter height of the triangle: 5
Area of the triangle: 25.0
4. Write a program that inputs a student's marks in three subjects (out of 100) and prints the percen
Sample Output:
Enter marks in subject 1: 85
Enter marks in subject 2: 90
Enter marks in subject 3: 80
Percentage marks: 85.0
Sample Output:
Enter the side of the square: 4
Area of the square: 16.0
Enter base of the triangle: 10
Enter height of the triangle: 5
Area of the triangle: 25.0
Sample Output:
Enter principal amount: 1000
Enter annual interest rate (in %): 5
Enter time in years: 2
Simple Interest: 100.0