17/19, can't figure out what I'm doing wrong


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/learn-python/lessons/functions/exercises/review-functions?action=lesson_resume

<In what way does your code behave incorrectly? Include ALL error messages.>
Your function failed on the message yes. It returned ‘Sorry’ when it should have returned ‘Shutting down’

Cannot figure what I’m doing wrong. Could someone help, please?

def shut_down(s):
  
  if s == "Yes":
    return("Shutting down")
  elif s == "No":
    return("Shutdown aborted")
  else:
    return("Sorry")

#2

Hi @ptraynor894,

Look here:

and here:

The lesson is picky about spelling, so make sure your strings (in the blocks that I quoted) are lowercase.


#3

Yes try with using lowercase once.


#4

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