15/15 the big if


#1

This is my code on the last task for Conditionals & Control Flow: (please help)

File "python", line 4
if not myInput > 36 and myInput != 7 * 5 or myInput == 105 / 3: # Start coding here!
^
IndentationError: unindent does not match any outer indentation level

If you could check the rest of the code I would appreciate it!

def the_flying_circus(myInput):
print the_flying_circus(35)
if not myInput > 36 and myInput != 7 * 5 or myInput == 105 / 3: # Start coding here!
return 'True' # Don't forget to indent
# the code inside this block!
elif myInput > 35567**3 or not myInput <= 3 * 2:
return 'False'# Keep going here.
else:
return 'What happened?'# You'll want to add the else statement, too!


#2

@13kumarn can edit your post by selecting the all the code snippet and pressing ctrl+k or the </> in the tools pane


#3

sorry, i don't understand - I tried doing that to my post and nothing happened


#4

First step is to copy and paste the code you wrote in the codeacademy editor here then select that code and press ctrl+k this wil keep all the indents intact that way we can tell where the indentation error you are getting is
for example this is what I had

def the_flying_circus():
    # Start coding here!
    if (len("Eric") == 4 and 3 < 4):
    	return True
    elif (len("Owusu")== 5 or 15> 20):
    	return True
    else:
    	return False

after selecting the code and pushing ctrl plus k it is indented nicely


#5

thanks ur a life saver :slight_smile: