Python Exercise: Display sign of the Chinese Zodiac for given year
39. Chinese Zodiac Sign
Write a Python program to display the sign of the Chinese Zodiac for the given year in which you were born.
Sample Solution:
Python Code:
Sample Output:
Input your birth year: 1784 Your Zodiac sign : Dragon
Flowchart :

For more Practice: Solve these Related Problems:
- Write a Python program to determine the Chinese Zodiac sign for a given year by calculating the remainder when divided by 12.
- Write a Python program to use a list of zodiac animals and map a given birth year to its corresponding sign.
- Write a Python program to prompt the user for a birth year and output the associated Chinese Zodiac animal.
- Write a Python program to implement a function that returns the Zodiac sign from a year using modular arithmetic.
Python Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
Previous: Write a Python program to display astrological sign for given date of birth.
Next: Write a Python program to find the median of three values.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics