17. Review: Functions


#1




Oops, try again. Your function failed on the message yes. It returned 'Shuttting down' when it should have returned 'Shutting down' # output : Shuttting down
None


code to be accepted printing Shutting down but passes


def shut_down(s):
    
    if s == "yes":
        return "Shuttting down"
    elif s == "no":
        return "Shutdown aborted"
    else: 
        return "Sorry"
        

print shut_down("yes")


#3

Kinda stuck at same point :slight_smile: hope anyone can advise some.


#4

hope so as well .. worst error messige .. ran it true pycharm and it works just fine.. gettin a bit tierd of CA interpeter...


#5

hahaha ! had 3 t's in "Shutting down" fix the issue my self !


#7

same issue, i had 2 t's in shutdown


#9