Question: Write Python code that will use a sequence of if elif and else statements to compute the Zodiac sign once you input the program the

Write Python code that will use a sequence of ifelif and else statements to compute the Zodiac sign once you input the program the year of your birth.
For this program, assume that your birth year is 2000 or later.
So, if your program asks for your year of birth, and you enter 2000, it prints out your Zodiac sign I.e Your Zodiac sign is Dragon. If you enter 2001, it prints out Your Zodiac sign is Snake. And so on.Next, add a try/except statement to prevent users from entering textinstead of numbers. Combine the above with a while loop, so if a user enters text, the program will print the appropriate message and start overNext, convert the if statements to a list, and repeat the previous process, in the same program.

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!