Python Minor Practical Programs Basic
Python Minor Practical Programs Basic
Level)
Practical 1
Area of a Triangle
base = float(input("Enter the base: "))
height = float(input("Enter the height: "))
area = 0.5 * base * height
print("The area is:", area)
Practical 2