Skip to content

Instantly share code, notes, and snippets.

@ornerymoose
Created June 6, 2019 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ornerymoose/ed0ec8a7b2d628928ed90bfa9a965765 to your computer and use it in GitHub Desktop.
Save ornerymoose/ed0ec8a7b2d628928ed90bfa9a965765 to your computer and use it in GitHub Desktop.
import time
print('Hello! What is your name?')
name = input()
print("It's nice to meet you, " + name + "! How old are you?")
age = input()
print("Wow! " + age + "? That's so great. Do you have a favorite color? What is it?")
color = input()
if color.lower() == "green":
print('Wow! My favorite color is green too!')
else:
print(mycolor + ' is a great color. My favorite color is green!')
time.sleep(2)
print("Can you believe I wrote this program by myself? (yes or no)")
choice = input()
if choice.lower() == "yes":
print("Why, thank you. I'm very proud.")
else:
print("I surprise even myself sometimes.")
time.sleep(2)
print("Have a great day! Goodbye!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment