Quick Question


invalid syntax at the colon after if? what am I doing wrong?
def the_flying_circus(x):
if: the_flying_circus==2 and 'tree'=='tree'
print True

Replace this line with your code.


the colon needs to be after the conditional
so it would look like this:

if the_flying_circus == 2 and 'tree' == 'tree':


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.