Don't like ads? PRO users don't see any ads ;-)

exercise2.2.py

By: lmayo on Dec 28th, 2011  |  syntax: Python  |  size: 0.33 KB  |  hits: 62  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/usr/bin/env python
  2. # Author: Landon Mayo
  3. # Exercise 2.2
  4. # Write a program to prompt the user for their name and then welcomes them
  5.  
  6. # prompt user for their name
  7. getName=raw_input("Enter Your're Name: ")
  8.  
  9. # Welcome the user by adding the string 'Hello' to
  10. # the raw_input defined in getName variable
  11. print"Hello " + getName