The Big If


#1

Okay, so I keep getting this weird error about indentation, and I can't figure it out... Can anyone help


#2

Can you post your code? If we can see your code we can help you fix the indention problem! :smiley:


#3

I says invalid syntax... I'm confused


#4

Ok well, assuming you are not completely done with this lesson, as you haven't completed all the criteria in the instructions, your elif statement should start in line with your if statement. So for example:

def the_flying_circus():
    if blah:
        blah# Start coding here!
        blah
        # Don't forget to indent
        # the code inside this block!
    elif blah:

#5

Okay, but then this happened


#6

First off, you need to complete the lesson before worrying about syntax errors. Secondly, it would seem you just copied and pasted my answer. I was giving you an incomplete example just to show what the format will look like once completed. Finish the lesson completely first, and I suggest converting back to your old code and finishing from that, and post an updated version of your code for us to look at!


#7

I just typed what u did, because I thought that' what u said to do, plus u can tell because my picture is in the corner of my computer. :slight_smile:



#8

Okay, though, thanks!:grinning:


#12