Programmer-created funcitons : def « Language Basics « Python






Programmer-created funcitons

Programmer-created funcitons



def instructions():
    """Display game instructions."""  
    print \

# main
print "Here are the instructions:"
instructions()
print "Here they are again:"
instructions()

           
       








Related examples in the same category