Please Help 17. Review: Functions


I keep getting this error:

Make sure you calling 'return "Shutting down"' when calling shut_down with 'yes'.

And I have no clue what I'm doing's the code.

def shut_down(s):

     if (s) == "Yes":
         return "Shutting down"


'yes' != 'Yes', string comparing is case sensitive.


Thanks! That question helped me out.


A post was split to a new topic: ''return' outside function


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