jeudi 9 juillet 2020

Feeble Attempt at using very low level Python for a Simple Script

I cannot seem to understand why this piece of code is not running, I am new to Python and programming as a whole. The error it is returning is one of incorrect syntax, any help would be greatly appreciated.

Here is my code:

heightDescription = ["short", "average", "tall", "very tall"]

height = 0

if int(height) <= 188:
    print(heightDescription[-1])

if int(height) in range(176, 187)
    print(heightDescription[2])

if int(height) in range(161, 175)
    print(heightDescription[1])

if int(height) in range(1, 174)
    print(heightDescription[0])

Aucun commentaire:

Enregistrer un commentaire