New course! Every coder should learn Generative AI!
Try a free lesson0
My code is not working. Can you say why?
base = int(input()) height = int(input()) def area_of_triangle(base, height): area = (1/2 * base * height) return(area)
1 Answer
+ 1
at the last line, put
print(area_of_triangle(base, height))