Shutdown issues


#1

I am facing the same issue

Here is my code :slight_smile:

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

Please help


17. Review: Functions
17. Review: Functions
#2

Hi @jaypei2016

It seems to me the problem is here:

if (s == "Yes")

When checking equality between two string, its case sensitive. So, i am guessing by changing "Yes" into "yes" will solve your problem.


#3

It seems to me the problem is here:

if (s == "Yes")

When checking equality between two string, its case sensitive. So, i am guessing by changing "Yes" into "yes" will solve your problem.


#4

Yes! That fixed it!

Thanks @zylm


#5

you should noticed that


#6

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