#Area of a rectangle base*height/2
base = input("Base of the rectangle: ")
height = input("Height of the rectangle: ")
area = (base*height)/2
print(area)
When I run the code and I enter the 3 and 5 I get this error:
Base of the rectangle: 3
Height of the rectangle: 5
Traceback (most recent call last):
File "main.py", line 4, in <module>
area = (base*height)/2
TypeError: can't multiply sequence by non-int of type 'str'