Says shut_down function should take one parameter? help please


#1

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

s = 'yes'


#2

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:


#3

yes It worked thanks :slight_smile:


Wrong solution?
#4

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


#5

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