# greet.py # Neal Nelson 2009.10.01 # Collaborators: Zelle - I'm working from examples in the Zelle textbook # # A greeting program that shows how to write a program with input, output # and multiple functions. # # The identifiers name and str are variables in this program. # The variable name in the function greet is also a parameter. # We say the function main calls, or invokes, the function greet. # def greet(name): print "Hello", name print "How are you?" def main(): str = input("Enter your name within quotes: " ) greet(str) main()