Else Problems


#1



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


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


Can somebody please tell me why this doesn't work?


#2

HI in your else statement

else:             
    return        # Make sure this returns False
    False

try to put it like that

else:             
    return  False    # Make sure this returns False

#3

that worked, thanks!!!