#27427: Python


yhsh1100058 (Tony)

學校 : 臺南市私立瀛海高級中學
編號 : 165941
來源 : [114.33.48.80]
最後登入時間 :
2021-10-04 08:20:41
a003. 兩光法師占卜術 | From: [210.70.112.60] | 發表日期 : 2021-10-04 08:31

First,

a equals input()

Second,

a equals a.split()

a equals int(a[0])*2 + int(a[1])

a equals a % 3

Follow the codes provided here,

if a == 0:

    print('普通')

elif a == 1:

    print('吉')

elif a == 2:

    print('大吉')

.split() will split an input into two

 
ZeroJudge Forum