Question: Python 3: Code should return generation name given the command print(generation(birth_year)) Where the person born between 1945 and 1964 is called Baby boomer . Those
Python 3: Code should return generation name given the command "print(generation(birth_year))"
Where the person born between 1945 and 1964 is called Baby boomer. Those born between 1965 and 1981 are called Generation X. The person born between 1982 and 1996 are known as Millennial. The people born between 1997 and 2010 are called Generation Z. Those born in 2011 or later have been named Alpha generation.
def generation(birth_year):
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
