-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex14.py
More file actions
22 lines (16 loc) · 619 Bytes
/
Copy pathex14.py
File metadata and controls
22 lines (16 loc) · 619 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from sys import argv
script, user_name = argv ## please note that spell the word "scripte" correctly
prompt = '>'
print "HI %s, I'm the %s script." %(user_name, script)
print "I'd like to ask you a few questions."
print "Do you like me %s" %user_name
likes = raw_input(prompt)
print "where do you live %s ?" %user_name
lives = raw_input(prompt)
print "what kind of computer do you have?"
computers = raw_input(prompt)
print"""
Alright, so you said %r about liking me.
You live in %r. Not sure where that is.
And you have a %r computer. Nice.
""" %(likes, lives, computers) ## plz note that do not miss the "%"