Review functions


#1



Oops, try again. Did you create a function called shut_down?


def shut_down (s):
       if (s)=="yes": 
              return "shutting down"    
       elif (s)==no:                    
              return "shutdown aborted"
       else:
              return "sorry"


#2

you just need to get rid of the space between shut_down and its parameter (s)! :thumbsup:


#3

I did what you said and it says Oops, try again. Did you create a function called shut_down? Should I try start the code again?


#4

My bad I missed that you need your no in " " marks.


#5

yeah thanks for that bro


#6

No problem! Happy coding! :smiley:


#7

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