Exercise 15 the big if


Continuing the discussion from exercise15 the big if:

Continuing the discussion from exercise15 the big if:

I got it to work (see code below)
but I had to ignore the comment # start coding here
and add name="hello" above.
Am I interpreting the comment wrong? how can you do it without defining name above that comment?

# Make sure that the_flying_circus() returns True
name = "hello"
def the_flying_circus():
    if name == "marta": # Start coding here!
        print"nice name!"# Don't forget to indent        
        # the code inside this block!
    elif name =="hola" or "hello":
        print name
        return True #Keep going here.
        print name
        return False


Where the comments in the exercise by default? They just help you, they are not must follow instructions

If they where from another forum topic, the person helping might have place comments to help the person who had a question, again, just a guide/recommendation


A comment is not executed putting your code above or below it does not make any difference.where you put that variable in your code is what matters


Yes the comments were in the exercise...and I always take them literally, so because it said to start coding in that line that is what I was trying to do.
The comments have always been very helpful in other exercises but in this one it mislead me.
thanks for your answers


thanks Rydan,
I knew that, but in previous exercises they were like instructions as well so I took them as that.
at least I can now move on! :slight_smile: