The Big If stuck


#1

this particular task is beginning to drive me insane.. :frowning:

Earlier it was a syntax mistake, now its an indentation error and i cant seem to figure out where i went wrong..

Can anyone please explain?


#2

HI you should indent all you return statement


#3

and how do you do that?


#4

like that

def functionName():
    if condition:
          #here put the return statement with this indent
    elif cndition:
           #here put the return statement with this indent
    else:
        #here put the return statement with this indent

#5

Thank you!!!! <3 i feel dumb haha.. oh well


#6

I made like that and it was succes.

def the_flying_circus():
    if 1 < 3 and True or False:
        return True
    elif 1 >= 3 and not True or not False:
        return False
    elif 1 == 3 and not True or True or not False:
        return False
    else:
        return True

#7

Thank You!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!:heart_eyes:


#9

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