Skip to content

Instantly share code, notes, and snippets.

@kpace
Created March 10, 2015 21:06
Show Gist options
  • Save kpace/ad2808f3f9c9ecec8051 to your computer and use it in GitHub Desktop.
Save kpace/ad2808f3f9c9ecec8051 to your computer and use it in GitHub Desktop.
HW
__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