-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex14.py
More file actions
25 lines (19 loc) · 712 Bytes
/
ex14.py
File metadata and controls
25 lines (19 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from sys import argv
script, user_name, age = argv
prompt = 'Answer - '
print "Hi %s, I'm the %s script." % (user_name, script)
print "I'm gonna 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 computer do you have?"
computer = raw_input(prompt)
print "Do you play super mario? Difficult question for a %s years old ;)" % age
mario = raw_input(prompt)
print """
Okay %s, so you said %r about liking me.
You live in %r. Cool place!
And you have %r computer. Nice.
Playing mario is good. You said %r, It's a game for kids to be honest :D
""" % (user_name, likes, lives, computer, mario)