In [10]:
#!usr/bin/python
import random
#Angelina Tilghman

year = input("what is the current year?")#Asking the user what current year it is.

def age(year):#Defining the variable
    age = input("What is your age?")#Asking the user to write their name.
    birthday_month = input("What is your birthday month")#Asking the user what their birthday month is.
    birthday_day = input("What is your birthday day?")#Asking the user what is their birthday day.
    birthday_year = input("What is your birthday year?")#Asking the user what is their birthday year.
    current_month = input("What is the current month?")#Asking the user what is the current month.
    current_day = input("What is the current day?")#Asking the user what is the current day.

    print("Your age is: age")#The program print out your age.
    print("The current year is: year")#The program prints out the current year it is right now.
    print("Your birthday is:", birthday_month, birthday_day, birthday_year)#The program prints out when your birthday is, the birthday month and the user birthday year.
    print("The current_day is:", current_month, current_day)#The program prints out the current day is, the current month and lastly the current day.


def exit():#Defining the variable.
    exitAnswer = input("Do you want to go again? Y or N?")#Asking the user if they want to play again yes or no. 
    if exitAnswer == "Y" or exitAnswer == "y":#If the user wants to play again the program will run again.
        age(year)#Calling the function.
    elif exitAnswer == "N"or exitAnswer == "n":#If the user doesn't want to play again the program will not run again.
        print("Have a great day, thanks for playing!")#The program will print out have a good day/ 
    else:#If the if statement are not true then this statement is true; 
        print("Y, y or N, n please")#The program is asking the user if they want to play again yes or no. 
        exit()#Calling the function. 
age(year)#Closing the function.
exit()#Closing the function. 
what is the current year?2024
What is your age?15
What is your birthday monthjune
What is your birthday day?2
What is your birthday year?2008
What is the current month?may
What is the current day?7
Your age is: age
The current year is: year
Your birthday is: june 2 2008
The current_day is: may 7
Do you want to go again? Y or N?n
Have a great day, thanks for playing!
In [ ]: