You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
707 B
30 lines
707 B
6 months ago
|
### @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.
|
||
|
""")
|
||
|
|