Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.64 KB | None | 0 0
  1. from sys import argv # argument variable allows python to unpack variables.
  2.  
  3. script, user_name = argv # the user will need to type a variable for the script to run
  4. prompt = '>'
  5.  
  6. print "Hi %s, I'm the %s script." % (user_name, script)
  7. print "I'd like to ask you a few questions"
  8. print "Do you like me %s" % user_name
  9. likes= raw_input(prompt)
  10.  
  11. print "Where do you live %s?" % user_name
  12. lives = raw_input(prompt)
  13.  
  14. print "What kind of computer do you have?"
  15. computer = raw_input(prompt)
  16.  
  17. print """
  18. Alright so you said %r about liking me.
  19. You live in %r. Not sure where that is.
  20. And you have a %r computer. Nice
  21. """ % (likes, lives, computer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement