My code is not working. Can you say why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

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)

11th May 2021, 9:35 AM
Viswasai Koduru
Viswasai Koduru - avatar
1 Answer
+ 1
at the last line, put print(area_of_triangle(base, height))
11th May 2021, 10:33 AM
senz
senz - avatar