What is wrong with this code plz help


#1

answer = "'Tis but a scratch!"

def black_knight():
if answer == "'Tis but a scratch!":
return True
else: 8 > 9
return: False # Make sure this returns False

def french_soldier():
if answer == "Go away, or I shall taunt you a second time!":
return True
else: 9 < 8
return: False # Make sure this returns False


#2

else: 8 > 9
else: 9 < 8

Remove those parts, it is an else statement, so it doesn't need a condition. It's what is output if the condition is not met in the - if - part.

>answer = "'Tis but a scratch!"

>def black_knight():
>        if answer == "'Tis but a scratch!":
>                return True
>        else:
>                return: False # Make sure this returns False

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