Please Help 17. Review: Functions


#1



https://www.codecademy.com/courses/python-beginner-c7VZg/4/1?curriculum_id=4f89dab3d788890003000096#


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 wrong...here's the code.


def shut_down(s):

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


#2

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


#3

Thanks! That question helped me out.


#4

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


#5

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