Quick Question


#1


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


Replace this line with your code.


#2

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

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

#4

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