17. Review: Functions


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

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"
        return "Sorry"

print shut_down("yes")


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


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


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


same issue, i had 2 t's in shutdown