Thursday, July 24, 2014

Day 110

Python at CodeCademy. Worked on Python tutorial 17 of 19, Functions, Review: Functions! Reviewed the functions I was previously working with.

The code used:
def shut_down(s):
    return shut_down
    
if shut_down == "yes":
    shut_down("Shutting down")
    
elif shut_down == "no":
    shut_down("Shutdown aborted")
    
else:
    shut_down("Sorry")

There was no code for this interaction:

No comments:

Post a Comment