Review: Functions


#1



I have no idea why this messgae keeps popping up. I've reviewed the other dicussions on this lesson and can't see what is wrong. Please help!

Oops, try again. Did you create a function called shut_down?


def shut_down(s):
    if s == "yes":
        return "shutting down"
    elif s == "no":
        return "shutdown aborted"
    else:
        return sorry


#2

sorry is not defined


#3

Thanks rydan! really appreciate it.


#4

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