Created
January 5, 2015 13:47
-
-
Save 10nin/eac5ba6a303ac4e7a12a to your computer and use it in GitHub Desktop.
This file contains 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
eto = ['申', '酉', '戌', '亥', '子', '丑', '寅', '卯', '辰', '巳', '午', '未'] | |
print('年を入力') | |
y = int(input()) | |
print('干支は{eto}'.format(eto[y%len(eto)])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment