Search code examples
pythonf-string

Trouble printing this f-string


I'm just trying this normal piece of code that has an f-string, but in the particular line mentioned below, I couldn't determine what's the problem:

elif(BMI<25):
    print(f"Your BMI is {BMI),you have normal weight.")

Solution

  • You have a ) after the third "BMI", needs to be a }.