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


#1



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


Oops, try again. Make sure french_soldier() returns False when answer is not "Go away, or I shall taunt you a second time!"!


answer = "'Tis but a scratch!"

def black_knight():
    if answer == "'Tis but a scratch!":
        return True
    else:         
        return        # Make sure this returns False
    False    
def french_soldier():
    if answer == "Go away, or I shall taunt you a second time!":
        return True
    else:             
        return        # Make sure this returns False
    False


#2

return keyword and False should be at same line like return True


#3

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