Review: Functions


#1

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"
else:
  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 ?


#2

anyone ? would it work or not ?


#3

Hi @microsolver81105,

Yep that should still give you the same result!

Happy Coding,

LC