The Big If


The code for this works but it says there is a EOF error on the line 0 with string. I'd appreciate any help.

Here's the code:

# Make sure that the_flying_circus() returns True
def the_flying_circus():
    a = input ('what is 5-1')
    if a == 4 and a != 5:
        return True# Start coding here!
        # Don't forget to indent
        # the code inside this block!
    elif a < 4 or a > 6:
        return False
        return "Crazy"
print the_flying_circus()

# Keep going here.
# You'll want to add the else statement, too!


The problem seems to be in the fact that you ask the user for input:

a = input ('what is 5-1')

if you where to simple set a = 4, your code will be good. I try to understand why input is not working


A post was split to a new topic: The big if