forked from lugnitdgp/Learn-Python
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsampleimport.py
More file actions
Latest commit
16 lines (16 loc) · 522 Bytes
/
Copy pathsampleimport.py
File metadata and controls
16 lines (16 loc) · 522 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fromsysimportargv
script, user_name=argv
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?"
computer=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, computer)