Tutorial help Review of If (Section 15)


I got to the last section of this part but can't figure out what I am being asked to do. The guidance is as below so any help would be appreciated...

# Make sure that the_flying_circus() returns True
def the_flying_circus():
    if ________:    # Start coding here!
        # Don't forget to indent
        # the code inside this block!
    elif ________:
        # Keep going here.
        # You'll want to add the else statement, too!


All in all what you need to do is, make sure that the is statement returns true. And add an else statement to your code, just like you have been doing in all the other assignments like number 14 :slight_smile:


Thank so much for the reply but do you have an example?


def the_flying_circus():
if 10 == 10 or 9 == 9:
return True
print("This is correct")
elif 10 == 9:
print("This is not correct")
print("None of the above")

This shows you the basic of what you need to do... :slight_smile:
Not that you need to do it like that :slight_smile:


Oh thank you! I didn't realise it was only something that simple!


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