>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.
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor