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 or later.
So if your program asks for your year of birth, and you enter it prints out your Zodiac sign I.e Your Zodiac sign is Dragon. If you enter it prints out Your Zodiac sign is Snake. And so onNext, add a tryexcept 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
