Some people get really attached to their generation identity. This program helps them figure out what generation they belong to.
This is a follow-on to your Python Age Calculator. Write that program first.
To get started, make a copy of your Python Age Calculator. Please don’t modify your original Age Calculator program – make a copy. Thanks!
Your program will determine what Generation the person belongs to based on the year they were born. Here’s a handy list of generations by year:
Your output will look something like this:
The secret is to use a range with an if/else statement like this example where number is the variable:
if number in range (1,5):
print (“your number is between 1 and 5”)
In your program you will replace “number” with the variable that holds the year that they were born.
Make sure to include all the generations listed above as possible results.