Created
February 3, 2020 14:46
-
-
Save santosadrian/dbd356732a064164e05626d63ff6947e to your computer and use it in GitHub Desktop.
Example 14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
""") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment