def myfun(): base=float(input("Enter the length of the base of the triangle: ")) height=float(input("Enter the height of the triangle: ")) area =0.5*base*height print(area) if __name__=="__main__": myfun()
Enter the length of the base of the triangle: 10
Enter the height of the triangle: 15
75.0