-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex14.py
More file actions
31 lines (24 loc) · 653 Bytes
/
ex14.py
File metadata and controls
31 lines (24 loc) · 653 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
26
27
28
29
30
31
#!/bin/env python
# -*- coding: utf-8 -*-
#:Tital: ex14.py
#:synopsis: ex14.py
#:Date: 2012-12-20
#:Version: 1.0
#:Author: lovvvve
#:Options:
from sys import argv
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 quertion."
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 %s about liking me.
You live in %s. Not sure where that is.
And you have a %s computer. Nice.
""" % (likes,lives,computer)