如何提示用户输入1
和36
之间的数字以及该程序如何通过elif
声明?
elif user_bet == (1) (2) :
print('You are betting on %s \n Good Luck!' %(user_bet))
money = int(input("What is your bet:"))
number = random.randint(1,36)
if number == user_bet:
user_flow = 36 * money + user_flow
print("Excellent Job! You now have %d" %(user_flow))
else:
user_flow = user_flow - money
print('Bad news, you now have %d' %(user_flow))