Python BMI Calculator Syntax Error & Code Not Running Equation

Question:

Syntax Error

I still don’t know what I am doing wrong? Why won’t it take my named variables and square height and take the other and divide it by the square of the height?

Why is it indicating that the error is the name of the variable?

Asked By: LearnersPermit

||

Answers:

You forgor to close a bracket on line 2

Answered By: Eris

This is a simple fix on line 2 replace
Height = float(input("Enter weight in meters")
To
Height = float(input("Enter height in meters"))
As far as I can tell you just needed an extra bracket.

Hope this helps!

Answered By: Lordcobcob
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.