2
這是我想要的,但對於整數。我不允許使用中斷或者繼續退出循環感謝我需要輸入一個數字。如果不是,顯示請輸入數字,並再次要求輸入
$#basically i need this, but with an int(input('please enter a numb
ask = input('Would you like to play Steal or Deal [y|n]? ')
while ask not in ('y', 'n'):
print ("Please enter either 'y' or 'n'")
print('')
ask = input('Would you like to play Steal or Deal [y|n]? ')