Review: Functions


Hello I wanna ask if the code will work the same way as it was asked to. This is what I did:
def shut_down(s):

if shut_down == s:
  return "Shutting down"
elif shut_down != s:
  return "Shutdown aborted"
  return "Sorry"

and yes I know I have to use the if s=="yes" and elif s=="no" but im just curious will my method work ?


anyone ? would it work or not ?


Hi @microsolver81105,

Yep that should still give you the same result!

Happy Coding,