# greetraw.py # Neal Nelson 2009.10.01 # Collaborators: Zelle - I'm working from examples in the Zelle textbook # # A greeting program that uses the raw_input function built into Python. # # 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 = raw_input("Enter your name: " ) greet(str) main()