Created
March 10, 2015 21:06
-
-
Save kpace/ad2808f3f9c9ecec8051 to your computer and use it in GitHub Desktop.
HW
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'kpace' | |
def interpret_chinese_sign(year): | |
year_signs = { | |
1900: "rat", | |
1901: "ox", | |
1902: "tiger", | |
1903: "rabbit", | |
1904: "dragon", | |
1905: "snake", | |
1906: "horse", | |
1907: "sheep", | |
1908: "monkey", | |
1909: "rooster", | |
1910: "dog", | |
1911: "pig" | |
} | |
while not(year in range(1900, 1912)): | |
if year < 1900: | |
year += 12 | |
else: | |
year -= 12 | |
return year_signs[year] | |
def interpret_western_sign(day, month): | |
months = [ | |
] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment