[Python] No Colon? but its there? [closed]

Discussão em 'Python' iniciado por Stack, Julho 3, 2025.

  1. Stack

    Stack Membro Participativo

    weight = 85
    height = 1.85

    bmi = weight / (height ** 2)

    # Do not modify the values above
    # Write your code below

    if bmi < 18.5:
    print("Underweight")

    elif bmi < 25:
    print("Normal weight")

    else bmi >= 25:
    print("Overweight")


    Getting an error at the else saying ":" is expected. it is clearly there. what is going on?

    Continue reading...

Compartilhe esta Página