diff options
Diffstat (limited to 'progs/a349.py')
-rw-r--r-- | progs/a349.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/progs/a349.py b/progs/a349.py new file mode 100644 index 0000000..a53b049 --- /dev/null +++ b/progs/a349.py @@ -0,0 +1,26 @@ +def chinese_zodiac(year):
+ if (year - 2000) % 12 == 0:
+ sign = 'Dragon'
+ elif (year - 2000) % 12 == 1:
+ sign = 'Snake'
+ elif (year - 2000) % 12 == 2:
+ sign = 'Horse'
+ elif (year - 2000) % 12 == 3:
+ sign = 'sheep'
+ elif (year - 2000) % 12 == 4:
+ sign = 'Monkey'
+ elif (year - 2000) % 12 == 5:
+ sign = 'Rooster'
+ elif (year - 2000) % 12 == 6:
+ sign = 'Dog'
+ elif (year - 2000) % 12 == 7:
+ sign = 'Pig'
+ elif (year - 2000) % 12 == 8:
+ sign = 'Rat'
+ elif (year - 2000) % 12 == 9:
+ sign = 'Ox'
+ elif (year - 2000) % 12 == 10:
+ sign = 'Tiger'
+ else:
+ sign = 'Hare'
+ return sign
\ No newline at end of file |