python syntax error invalid syntax -
i'm new python programing language. purchased book , i've been reading it. book called (3x) python programming absolute beginner third edition. i'm trying put i've far learned action. have problem don't understand know it's simple i'm not sure how solve if can tell me problem , how correct it. appreciate in advance! :) add more tried doing python 2x , had same message error syntax, invalid syntax.
whitespace used denote level of indention in python.
the else:
needs aligned (have same indentation level) if jim_age ...
.
if jim_age > sam_age: print("jim older") else: print("sam older")
Comments
Post a Comment