def get_year_info(year):
# Define age ranges and corresponding information
year_info = {
range(1980,1990): "those born between 1980 and 1990, tend to have a nurturing and supportive nature towards their loved ones. They value open and frequent communication, often using digital tools to stay connected, ensuring they are emotionally present regardless of physical distance. Quality time is important to them, as they seek meaningful interactions and shared experiences. Millennials prioritize work-life balance, making time for family and friends despite their busy schedules..",
range(1990, 2000): "People born between 1990 and 2000, often referred to as late Millennials or early Generation Z, exhibit a distinctive nature towards their loved ones characterized by a blend of traditional values and modern influences. They are adept at using technology to maintain close connections, frequently communicating through social media, messaging apps, and video calls. This generation values authenticity and emotional honesty in their relationships, often expressing their feelings openly and seeking deep, meaningful connections. ",
range(2000, 2002): "People born between 2000 and 2002, who are part of Generation Z, exhibit a unique and dynamic nature They are highly proficient with technology, often using social media and instant messaging to stay closely connected with family and friends. Authenticity and emotional transparency are important to them; they openly express their feelings and value genuine, deep relationships. Mental health awareness is a significant aspect of their lives, and they prioritize creating supportive environments where their loved ones feel understood and valued. ",
range(2002,2004): "People born between 2002 and 2004, belonging to Generation Z, demonstrate a distinctive and evolved nature towards their loved ones. They are digital natives, seamlessly using technology to maintain constant and meaningful connections with family and friends through social media, video chats, and instant messaging. This generation values authenticity and emotional openness, often expressing their thoughts and feelings candidly. They are acutely aware of mental health issues and prioritize the well-being of themselves and their loved ones, fostering supportive and empathetic environments. ",
range(2004,2006): "People born between 2004 and 2006, a part of Generation Z, display a caring and conscientious nature towards their loved ones. Being digital natives, they effortlessly use technology to maintain close relationships, frequently communicating through social media, video calls, and messaging apps. They value authenticity and emotional honesty, often expressing their feelings openly and valuing deep, genuine connections. Mental health awareness is a core aspect of their interactions, as they prioritize creating supportive and understanding environments for themselves and their loved ones..",
}
# Find the appropriate age range and corresponding info
for year_range, info in year_info.items():
if year in year_range:
return info
return "of an unknown year"
def main():
try:
# Get the user's age
year = int(input("Type your year: "))
# Display the age
print(f" {year} behaviour towards your people")
# Get additional information based on age
year_description = get_year_info(year)
print(f"You are {year_description}")
except ValueError:
print("Please enter a valid year")