# 西元、民國換算器

print('西元、民國年分換算器\ncurryrice @2021/01/08\n')

year = int(input('請輸入你的西元年生日年份: '))

# 以下為擴充內容
if year < 1911:
    print(&#039;你的民國生日年份是 民國前&#039;, 1911-year, &#039;年&#039;)
else:
# 以上為擴充內容
    print(&#039;你的民國生日年份是 民國&#039;, year-1911, &#039;年&#039;)

Add a code snippet to your website: www.paste.org