Last active
February 20, 2018 20:50
-
-
Save GrunclePug/810004062ed9967535efd3d43e89037b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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