So I just started trying to learn Python for a project and as a potential career path, below is a code I don’t know why isn’t working, my foundation might not be that good, can someone explain to me?
# Make sure that the_flying_circus() returns True print "What is the truth?" answer = raw_input() def the_flying_circus(answer): if answer == potato: # Start coding here! if len(potato) == 6: cat = True if cat = True print "Potatoes are the truth" # the code inside this block! elif answer = potatoes: print "I want the singular form" else: print "What are you doing"
File “python”, line 8
if cat = True
SyntaxError: invalid syntax