[Tutor] unknown syntax error
Joaquin Alzola
Joaquin.Alzola at lebara.com
Thu Dec 15 04:51:37 EST 2016
>hey i dont know if this is the right place but i was just coding in idle and kept getting this syntax error and i can not see m to fix it here is my bit of code:
> if age == my_age:
> print("i'm",age,"too")
> else:
> if age < 14:
> print(" i'm older that you i'm",my_age,":)")
> else:
> print("your older than me i'm",my_age,":(")
If else should be at the same level of indentation.
It is a condition . http://www.peachpit.com/articles/article.aspx?p=1312792&seqNum=3
if x==0:
print(x)
else:
print(x)
Use whitespaces or tabs as your indentation.
This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or disclose its content but contact the sender immediately upon receipt.
More information about the Tutor
mailing list