17/19 error message


#1

hello everyone this is my code

def fermer(s):
if s == "oui or Oui or OUI":
return"Fermeture..."
elif s == "non or Non or NON ":
return"Fermeture annulee !"
else:
return "Je ne vous comprends pas "

                       I don't understand why there are this message :

File "python", line 2
if s == "oui or Oui or OUI":
^
IndentationError: expected an indented block

                      and :

Oops, thank you again. Your function close () must have a parameter!

oui=yes
non=no
je ne vous comprends pas = I don't understand you :grinning:


#2

The if/elif function needs to be indented. Instead of everything starting on the same line, it would look like this.
def fermer(s):
if s == "oui or Oui or OUI":
return"Fermeture..."
elif s == "non or Non or NON ":
return"Fermeture annulee !"
else:
return "Je ne vous comprends pas "


#3

Thank you so much for your help