python-hard-way/3exercises/ex14.py

27 lines
624 B
Python
Raw Normal View History

from sys import argv
script, user_name, firstcow = argv
prompt = '> '
print("How old are you?")
age = int(input(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}?")
print("Why are you a cow?")
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 you're {age} and {likes} about liking me.
You live in {lives}. Not sure where that is.
And you have {computer} computer. Nice.
""")
print(firstcow)