dimanche 25 mars 2018

invalid syntax in if statement

else:
    if radius < 0 :
        print('Radius cannot be negative')
    elif radius > 0 and height < 0 :
        print('Height cannot be negative')
    else:
        print(int(v))

I keep getting syntax error with "else:". Is there anything wrong with the code?

Aucun commentaire:

Enregistrer un commentaire