bMonth.py

#bMonth.py by HYC

print(“This program is to find out the month of your brithday.”)
print(“—–PLEASE ANSWER ALL QUESTION WITH LOWER CASE.—–“)

letter1 = input(“What is the frist letter of your month? “)

if letter1 == “j”:
letter4 = input( “What’s the fourth letter in your month? “)

if letter4 == “u”:
print(“It’s January!”)
elif letter4 == “e”:
print(“It’s June!”)
elif letter4 == “y”:
print(“It’s July!”)
else:
print(“N/A”)

elif letter1 == “f”:
print(“It’s Februnary!”)

elif letter1 == “m”:
letter3 = input(“What’s the third letter in your month? “)

if letter3 == “r”:
print(“It’s March!”)
elif letter3 == “y”:
print(“It’s May!”)
else:
print(“N/A”)

elif letter1 == “a”:
letter2 = input (“What’s the second letter in your month? “)

if letter2 == “p”:
print(“It’s April!”)
elif letter2 == “u”:
print(“It’s August!”)
else:
print(“N/A”)

elif letter1 == “s”:
print(“It’s September!”)

elif letter1 == “o”:
print(“It’s October!”)

elif letter1 == “n”:
print(“It’s November!”)

elif letter1 == “d”:
print(“It’s December!”)

else:
print(“N/A”)

Screen Shot 2016-12-08 at 3.19.40 PM.png

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s