<commit_before>"""
birthday.py
Author: <NAME>
Credit: The internet and classmates, and teachers
Assignment:

Your program will ask the user the following questions, in this order:

1. Their name.
2. The name of the month they were born in (e.g. "September").
3. The year they were born in (e.g. "1962").
4. The day they were born on (e.g. "11").

If the user's birthday fell on October 31, then respond with:

  You were born on Halloween!

If the user's birthday fell on today's date, then respond with:

  Happy birthday!

Otherwise respond with a statement like this:

  Peter, you are a winter baby of the nineties.

Example Session

  Hello, what is your name? Eric
  Hi Eric, what was the name of the month you were born in? September
  And what year were you born in, Eric? 1972
  And the day? 11
  Eric, you are a fall baby of the stone age.
"""

from datetime import datetime
from calendar import month_name
todaymonth = datetime.today().month
todaydate = str(datetime.today().day)
tmonth = month_name[todaymonth]
tmonth = tmonth.lower()

name = input("Hello, what is your name? ")
month = input("Hi "+ name + ", what was the name of the month you were born in? ")
month = month.lower()
year = input("And what year were you born in, " + name + "? ")
day = input("And the day? ")

if tmonth==month and todaydate==day:
    print("Happy birthday!")

elif month == "october" and day == "31":
    print("You were born on Halloween!")
else:
    if int(year) < int(1980) and month == "september":
        print("name" + ", " + "You are a fall baby of the stone age.")
    if int(year) < int(1980) and month == "october":
        print("name" + ", " + "You are a fall baby of the stone age.")
    if int(year) < int(1980) and month == "november":
        print("name" + ", " + "You are a fall baby of the stone age.")
    if int(year) < int(1980) and month == "december":
        print("name" + ", " + "You are a winter baby of the stone age.")
    if int(year) < int(1980) and month == "january":
        print("name" + ", " + "You are a winter baby of the stone age.")
    if int(year) < int(1980) and month == "february":
        print("name" + ", " + "You are a winter baby of the stone age.")
    if int(year) < int(1980) and month == "march":
        print("name" + ", " + "You are a spring baby of the stone age.")
    if int(year) < int(1980) and month == "april":
        print("name" + ", " + "You are a spring baby of the stone age.")
    if int(year) < int(1980) and month == "may":
        print("name" + ", " + "You are a spring baby of the stone age.")
    if int(year) < int(1980) and month == "june":
        print("name" + ", " + "You are a summer baby of the stone age.")
    if int(year) < int(1980) and month == "july":
        print("name" + ", " + "You are a summer baby of the stone age.")
    if int(year) < int(1980) and month == "august":
        print("name" + ", " + "You are a summer baby of the stone age.")
    if 1980 <= int(year) < 1990 and (month == "september" or month == "october" or month == "november"):
        print("name" + ", " + "You are a fall baby of the eighties.")
    if 1980 <= int(year) < 1990 and (month == "december" or month == "january" or month == "february"):
        print("name" + ", " + "You are a winter baby of the eighties.")
    if 1980 <= int(year) < 1990 and (month == "march" or month == "april" or month == "may"):
        print("name" + ", " + "You are a spring baby of the eighties.")
    if 1980 <= int(year) < 1990 and (month == "june" or month == "july" or month == "august"):
        print("name" + ", " + "You are a summer baby of the eighties.")
    if 1990 <= int(year) < 2000 and (month == "september" or month == "october" or month == "november"):
        print("name" + ", " + "You are a fall baby of the nineties.")
    if 1990 <= int(year) < 2000 and (month == "december" or month == "january" or month == "february"):
        print("name" + ", " + "You are a winter baby of the nineties.")
    if 1990 <= int(year) < 2000 and (month == "march" or month == "april" or month == "may"):
        print("name" + ", " + "You are a spring baby of the nineties.")
    if 1990 <= int(year) < 2000 and (month == "june" or month == "july" or month == "august"):
        print("name" + ", " + "You are a summer baby of the nineties.")
    if 2000 <= int(year) and (month == "september" or month == "october" or month == "november"):
        print("name" + ", " + "You are a fall baby of the two thousands.")
    if 2000 <= int(year) and (month == "december" or month == "january" or month == "february"):
        print("name" + ", " + "You are a winter baby of two thousands.")
    if 2000 <= int(year) and (month == "march" or month == "april" or month == "may"):
        print("name" + ", " + "You are a spring baby of two thousands.")
    if 2000 <= int(year) and (month == "june" or month == "july" or month == "august"):
        print("name" + ", " + "You are a summer baby of two thousands.")<commit_msg>Updated from Brython Server: 9/28/2015 2:29:19 PM<commit_after>"""
birthday.py
Author: <NAME>
Credit: The internet and classmates, and teachers
Assignment:

Your program will ask the user the following questions, in this order:

1. Their name.
2. The name of the month they were born in (e.g. "September").
3. The year they were born in (e.g. "1962").
4. The day they were born on (e.g. "11").

If the user's birthday fell on October 31, then respond with:

  You were born on Halloween!

If the user's birthday fell on today's date, then respond with:

  Happy birthday!

Otherwise respond with a statement like this:

  Peter, you are a winter baby of the nineties.

Example Session

  Hello, what is your name? Eric
  Hi Eric, what was the name of the month you were born in? September
  And what year were you born in, Eric? 1972
  And the day? 11
  Eric, you are a fall baby of the stone age.
"""

from datetime import datetime
from calendar import month_name
todaymonth = datetime.today().month
todaydate = str(datetime.today().day)
tmonth = month_name[todaymonth]
tmonth = tmonth.lower()

name = input("Hello, what is your name? ")
month = input("Hi "+ name + ", what was the name of the month you were born in? ")
month = month.lower()
year = input("And what year were you born in, " + name + "? ")
day = input("And the day? ")

if tmonth==month and todaydate==day:
    print("Happy birthday!")

elif month == "october" and day == "31":
    print("You were born on Halloween!")
else:
    if int(year) < int(1980) and month == "september":
        print(name + ", " + "you are a fall baby of the stone age.")
    if int(year) < int(1980) and month == "october":
        print(name + ", " + "you are a fall baby of the stone age.")
    if int(year) < int(1980) and month == "november":
        print(name + ", " + "you are a fall baby of the stone age.")
    if int(year) < int(1980) and month == "december":
        print(name + ", " + "you are a winter baby of the stone age.")
    if int(year) < int(1980) and month == "january":
        print(name + ", " + "you are a winter baby of the stone age.")
    if int(year) < int(1980) and month == "february":
        print(name + ", " + "you are a winter baby of the stone age.")
    if int(year) < int(1980) and month == "march":
        print(name + ", " + "you are a spring baby of the stone age.")
    if int(year) < int(1980) and month == "april":
        print(name + ", " + "you are a spring baby of the stone age.")
    if int(year) < int(1980) and month == "may":
        print(name + ", " + "you are a spring baby of the stone age.")
    if int(year) < int(1980) and month == "june":
        print(name + ", " + "you are a summer baby of the stone age.")
    if int(year) < int(1980) and month == "july":
        print(name + ", " + "you are a summer baby of the stone age.")
    if int(year) < int(1980) and month == "august":
        print(name + ", " + "you are a summer baby of the stone age.")
    if 1980 <= int(year) < 1990 and (month == "september" or month == "october" or month == "november"):
        print(name + ", " + "you are a fall baby of the eighties.")
    if 1980 <= int(year) < 1990 and (month == "december" or month == "january" or month == "february"):
        print(name + ", " + "you are a winter baby of the eighties.")
    if 1980 <= int(year) < 1990 and (month == "march" or month == "april" or month == "may"):
        print(name + ", " + "you are a spring baby of the eighties.")
    if 1980 <= int(year) < 1990 and (month == "june" or month == "july" or month == "august"):
        print(name + ", " + "you are a summer baby of the eighties.")
    if 1990 <= int(year) < 2000 and (month == "september" or month == "october" or month == "november"):
        print(name + ", " + "you are a fall baby of the nineties.")
    if 1990 <= int(year) < 2000 and (month == "december" or month == "january" or month == "february"):
        print(name + ", " + "you are a winter baby of the nineties.")
    if 1990 <= int(year) < 2000 and (month == "march" or month == "april" or month == "may"):
        print(name + ", " + "you are a spring baby of the nineties.")
    if 1990 <= int(year) < 2000 and (month == "june" or month == "july" or month == "august"):
        print(name + ", " + "you are a summer baby of the nineties.")
    if 2000 <= int(year) and (month == "september" or month == "october" or month == "november"):
        print(name + ", " + "you are a fall baby of the two thousands.")
    if 2000 <= int(year) and (month == "december" or month == "january" or month == "february"):
        print(name + ", " + "you are a winter baby of two thousands.")
    if 2000 <= int(year) and (month == "march" or month == "april" or month == "may"):
        print(name + ", " + "you are a spring baby of two thousands.")
    if 2000 <= int(year) and (month == "june" or month == "july" or month == "august"):
        print(name + ", " + "you are a summer baby of two thousands.")
{'fraction_non_alphanumeric': 0.15481213582479406, 'fraction_numerical': 0.030942334739803096, 'mean_word_length': 2.999598232221776, 'pattern_counts': {'":': 26, '<': 69, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2697337', 'n_tokens_mistral': 3391, 'n_tokens_neox': 3104, 'n_words': 1343}