Says shut_down function should take one parameter? help please


def shut_down(s):
if shut_down() == s:
return 'Shutting down'
elif s == 'no':
return 'Shutdown aborted'
return 'sorry'

s = 'yes'


You're asking if the function (shut_down()) is equal to the parameter? No, you should replace it with s. :slight_smile:
Also, replace s with "yes" after the == because s = 'yes' is outside of the function, so Python won't see it or do anything with it .
Let me know if it works or not. :slight_smile:


yes It worked thanks :slight_smile:

Wrong solution?

Sure, no problem! :grinning: Happy coding! :slight_smile:


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