Question: I have three current issues 1.When I input no nah n for example it restarts the code instead of stopping 2.I tell user if bank


Q X COM wload DR Program Specification 2021.pdf OC Mann 10 und stes Alan DRDL2H: EXTENDED VALIDATION & RE-ANTE Full input validation: User can enter Upper or Lower case, for "yes" or "no" or 'y' or 'n' or 'yea' or 'nay', for example Tell the user they cannot play if their bank is Zero. Tell the user if the computer's bank is Zero (and then no play if the computer is the only other player). Change: When pot is empty, every player needs to ANTE in 3 pieces. (original ante amount - if there are more than 4 players, ante should be 2 pieces) ALIENWARE FS 75 PO 8 ha 04 F1 F12 $ 2 3 % 5 8. 7 6 8 0 E R. 1 0 P 28 print("The pot now has: int (pot 29 comBank-int((combank-3)) 30 print ("I will now put 3 of my pieces" (comBank). remaning") 31 potwint (pot)+3) 22 print("The pot now has: ", int (pot))) 33 Rolling 34 Repeat playing 35 choice = Yes 36 be choice. lower() == 'yes' or choice. lower() == 'yea's choice. lowe 37 print(" You are inside the game!") 38 print) 39 print(" ') print ("Spinning...") 41 roll - random.randint (1,4) 42 print(" ") 43 print("You rolled:", int (roll)) Tells User what they got at 45 roll 1: dreidel = ('qimel 847 print("qimel") print(" ') 49 bank-int (bank) +int ((pot)) 50 pot int(pot-pot) 52 print("Congrats, You get the whole pot!") troll = 2: 53 dreidel = ('hey) 54 print("hey") print(" ') ne 56 pot int (pot/2) 57 bank-int(bank)+ int (pot) 58 th print("You get half of the Pot!", int (bank)) I don't know 59 troll 3: dreidel = ('shin' 61 print("shin") 62 pa print("That's to bad : () bank-int(bank-1) 64 print("You have.", (int (bank)), "Pieces") a 65 pot int(pot+1) 52 =Y 55 60 2 pieces) dreidel = (hey') print("hey") print(" ') comBankwint (comBank) + int (pot/2) print("I got half of the Pot! and have: ".int comBank) troll -3: dreidel = (shin') print("shin") print("That's to bad : (*) comBankeint (comBank-1) print("I have: ", int(comBank), "Pieces) potwint (pot+1) print("the pot now has: ", int (pot)) it roll-4: drediel - ('nun print("nun") comBank-int (comBank) print("didn't win, didn't lose! :" int(comBank). "Pieces) print("Game ended"> TASKS use it they want to play again choice = input ("Want to play again?") choice = choice. lower() --no! or choice. lower() == 'n' of choice.lc print("Thanks for playing!") If not valid white choice. lower()!- yes' and choice. lower() != year and choice.lower print(" Not a valid option. ") choice input("Want to play again?") Ln: 99 Col: eces) LIENWARE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
