[Tutor] unknown syntax error
George Fischhof
george at fischhof.hu
Thu Dec 15 04:07:35 EST 2016
Hi Oliver,
Your else statement should be unindented by one level ;-)
The else must be at same indent level as the if it belongs to.
BR,
George
2016-12-11 17:30 GMT+01:00 oliver patterson <
oliverjamespatterson at hotmail.com>:
> 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:
>
> my_age=14
> age=input("How old are you?:")
> print("type start()")
> def start():
> print("hey")
> 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,":(")
>
>
>
> please help thank you.
>
>
>
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list