rovertb (0)

what is missing from my code?

You are viewing a single comment. View All
ThomasS1 (56)

The others are right that you were missing a colon at the end of line 1, but you also have another problem: input cannot be used as a variable name as it is a reserved function name. You can change lines 5-9 to this:

base = float(input("enter base: "))
height = float(input("enter height:"))

and it should then work.