Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

def game10: import random totalcoins- 39 x-input(\' For this game, do you wish t

ID: 3746458 • Letter: D

Question

def game10: import random totalcoins- 39 x-input(' For this game, do you wish to pick the first 1-3 numbers? Enter Y or N, otherwise press any other key to exit' while totalcoins > 7: choice-int(input('Choose 1,2 or 3')) totalcoins--choice for i in range(1): COM_choice- random.randint(1,3) totalcoins--COM_choice print(totalcoins, 'left') else: choice-int(input(' Choose 1,2 or 3')) totalcoins--choice if totalcoins5: COM-choice-random, randint(1,3) totalcoins--COM_choice if totalcoins 4 choice-int(input('Choose 1,2 or 3')) totalcoins--choice if totalcoins3 choice-int(input('Choose 1,2 or 3')) if totalcoins0 or 1: print( Congrats you won!:)"") if totalcoins2: choice-int(input(' Chose 1 or 2') otalcoinst-choice if totalcoins 0 or 1: print('Congrats you won!"

Explanation / Answer

It seems that there is no logical/syntax error exists... Will you please provide the test case that you are used...

Otherwise please provide the Error while you are interpret.

Please give me comment.