When I typed the code as area = (1/2)baseheight, why did the calculate area = 0.0000 and the program did not say anything about what I did wrong?
With a little bit of typo change from the above into area = 0.5 baseheight, why this one returned the correct area value and not the other?
I did try both way, just want to know what’s the difference because in normal math, 1/2 == 0.5 and people can use them to replace one another just fine, but in Python is difference. I also include to 1/2 and make it look like this (1/2) to tell the program that it has to calculate 1/2 as one set before it moves on to multiply (1/2) with base and height. If you confused what I am trying to say is I include () around 1/2 to tell the program so it know which order of operation come first.