Skip to content

Instantly share code, notes, and snippets.

@santosadrian
Created February 3, 2020 14:46
Show Gist options
  • Save santosadrian/dbd356732a064164e05626d63ff6947e to your computer and use it in GitHub Desktop.
Save santosadrian/dbd356732a064164e05626d63ff6947e to your computer and use it in GitHub Desktop.
Example 14
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