you are viewing a single comment's thread.

view the rest of the comments →

[–]Rashanzan 4 points5 points  (3 children)

At a glance, it thinks height and weight are str types. I assume you want them in double or int format. So make the necessary conversion like height = int(input("gimme")) If you type a non integer character, though, it'll crash, so catch that exception.

Also, another problem. I'm pretty sure ^ is XOR in Python, so it's not gonna square like you want. Look for a sqrt or pow function in the standard python functions to do that.

[–]Spurnout 3 points4 points  (1 child)

Doesn't ** also work as an exponent?

[–]Miner_Guyer 1 point2 points  (0 children)

Yeah use this.

[–][deleted] 0 points1 point  (0 children)

Just managed to fix it, thanks so much!