# A simple example of functions, drawn from a Monty Python sketch # Author: David Mutchler, March 2010, based on work by Curt Clifton and others. def hello(): print "Customer: Hello" print "Customer: I'd like to complain about this parrot" def complain(complaint): print "Customer: I purchased this parrot not half an hour ago from this very boutique" print "Owner: Oh yes, the Norwegian Blue. What's wrong with it?" print "Customer:", complaint hello() complain("He's dead, that's what's wrong with it!") print hello() complain("He doesn't talk, that's what's wrong with it!") print hello() complain("He complains about my cooking, that's what's wrong with it!")