-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathex14.py
More file actions
29 lines (22 loc) · 707 Bytes
/
ex14.py
File metadata and controls
29 lines (22 loc) · 707 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
### @export "setup"
import fake_input
input, input = fake_input.create(['Yes',
"San Francisco",
'Tandy 1000'])
### @export "code"
from sys import argv
script, user_name = argv
prompt = '> '
print(f"Hi {user_name}, I'm the {script} script.")
print("I'd like to ask you a few questions.")
print(f"Do you like me {user_name}?")
likes = input(prompt)
print(f"Where do you live {user_name}?")
lives = input(prompt)
print("What kind of computer do you have?")
computer = input(prompt)
print(f"""
Alright, so you said {likes} about liking me.
You live in {lives}. Not sure where that is.
And you have a {computer} computer. Nice.
""")