Indentation in Python and Conditionals ( The Big If)


#1

I need help with this Indentation in python


https://www.codecademy.com/en/courses/python-beginner-BxUFN/4/1?curriculum_id=4f89dab3d788890003000096#


My input is

Make sure that the_flying_circus() returns True

def the_flying_circus():

if 4 > 5  and 45 > 4:    # Start coding here!
    print True
    # the code inside this block!
elif 4 > 49 or 4 < 7:
     print True
      
    
    
else:4 > 48 or 4 < 7:
      print True

This is the error message I get

   "File "python", line 9
    else:4 > 48 or 4 < 7:
       ^ IndentationError: expected an indented block"

How should I correct it?


#2

else can't have a condition, else should simply print True


#3

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