Created
March 4, 2019 00:23
-
-
Save haileylgbt/9758a6b9d4d4ddc0d616a8cb7e209cda to your computer and use it in GitHub Desktop.
What's your name?
This file contains 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 = input('Enter your first name: ') | |
if first_name == "Harry": | |
yesOrNo = input ('Wait...Harry? As in Harrison Meredith? Y/N ') | |
if yesOrNo == 'Y': | |
print("Hello there, creator! Great to see you!") | |
exit(0) | |
elif yesOrNo == 'N': | |
print("Oh, my mistake...anyway,") | |
yesOrNo = input ('You have entered ' + first_name + '. Is this correct? Y/N ') | |
if yesOrNo == 'Y': | |
print("Hello there, " + first_name + "!") | |
elif yesOrNo == 'N': | |
first_name = input('Please re-enter your first name: ') | |
print("Hello there, " + first_name + "!") | |
surname = input("What's your last name? ") | |
yesOrNo = input ('You have entered ' + surname + '. Is this correct? Y/N ') | |
if yesOrNo == 'Y': | |
print("So your full name is " + first_name + " " + surname + "? Cool!") | |
elif yesOrNo == 'N': | |
last_name = input('Please re-enter your last name: ') | |
print("So your full name is " + first_name + " " + surname + "? Cool!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment