Skip to content

Instantly share code, notes, and snippets.

@10nin
Created January 5, 2015 13:47
Show Gist options
  • Save 10nin/eac5ba6a303ac4e7a12a to your computer and use it in GitHub Desktop.
Save 10nin/eac5ba6a303ac4e7a12a to your computer and use it in GitHub Desktop.
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