Skip to content

Instantly share code, notes, and snippets.

@GrunclePug
Last active February 20, 2018 20:50
Show Gist options
  • Save GrunclePug/810004062ed9967535efd3d43e89037b to your computer and use it in GitHub Desktop.
Save GrunclePug/810004062ed9967535efd3d43e89037b to your computer and use it in GitHub Desktop.
first_name = str(input("What is your first name?: "))
middle_name = str(input("What is your middle name?: "))
last_name = str(input("What is your last name?: "))
good = "Oh that's wonderful!"
bad = "Oh I'm sorry to hear :("
idk = "Well, at least you're not upset."
first_name = first_name.capitalize()
middle_name = middle_name.capitalize()
last_name = last_name.capitalize()
name_format = "\nHello {first} {middle:.1s} {last}!"
print(name_format.format(first=first_name, middle=middle_name, last=last_name))
feels = input("How are you doing?: \n1. Good\n2. Bad\n3. I don't know\n")
if feels == "1":
print(good)
if feels == "2":
print(bad)
if feels == "3":
print(idk)
hobby = input("What is your favourite hobby?: ")
hobby = hobby.lower()
hobby_format = "Oh, {hobby} sounds like fun!"
print(hobby_format.format(hobby=hobby))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment