place your bet print('you have'purse'mon how much do you bet(or quit)' while true pot input('' if pot upper(='quit' print('thanks for playing!' sys exit( elif not pot isdecimal() print('please enter number ' elif int(potpurse print('you do not have enough to make that bet ' else this is valid bet pot int(potconvert pot to an integer break exit the loop once valid bet is placed roll the dice dice random randint( dice random randint( print('the dealer swirls the cup and you hear the rattle of dice ' print('the dealer slams the cup on the floorstill covering the' print('dice and asks for your bet ' print( print(cho (evenor han (odd)?' let the player bet cho or han while true bet input(''upper( if bet !'choand bet !'han' print('please enter either "choor "han' continue else break reveal the dice results print('the dealer lifts the cup to reveal:' print('japanese_numbers[dice ]'-'japanese_numbers[dice ] print('dice '-'dice determine if the player won rolliseven (dice dice = if rolliseven correctbet 'cho else correctbet 'han playerwon bet =correctbet display the bet results if playerwon print('you wonyou take'pot'mon ' purse purse pot add the pot from player' purse print('the house collects 'pot / 'mon fee 'cho-han