Question: PYTHON!! I already did the first half of this assignment. However, the second half is: You also will be making the user 10 years younger

PYTHON!!

I already did the first half of this assignment. However, the second half is:

You also will be making the user 10 years younger by reporting a 2nd zodiac sign if born 10 years later. Your program will report the Chinese zodiac sign for both years. Your program will only read the birth year and report two (2) zodiac signs. For ex. for year 2000 the zodiac signs you need to report are Dragon and Tiger.

Here is where I am and it works fine for the first person. Now I need to add in the second person 10 years younger.

year = int(input("Enter a year: ")) ChineseYear = year % 12 ZodiacYear = [0,1,2,3,4,5,6,7,8,9,10,11,12] ZodiacSign = ["monkey","rooster","dog","pig","rat","ox","tiger","rabbit","dragon","snake","horse","sheep"]

print(ZodiacSign[ZodiacYear.index(ChineseYear)])

program is in Python 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!