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