swapwins swaplosses staywins staylosses while truemain program loop the computer picks which door has the car doorthathascar random randint( ask the player to pick door print(all_closed while truekeep asking the player until they enter valid door print('pick door or (or "quitto stop):' response input(''upper( if response ='quit' end the game print('thanks for playing!' sys exit( if response =' or response =' or response =' ' break doorpick int(response figure out which goat door to show the player while true select door that is goat and not picked by the player showgoatdoor random randint( if showgoatdoor !doorpick and showgoatdoor !doorthathascar break show this goat door to the player if showgoatdoor = print(first_goat elif showgoatdoor = print(second_goat elif showgoatdoor = print(third_goat print('door {contains goat!format(showgoatdoor) ask the player if they want to swap while truekeep asking until the player enters or print('do you want to swap doorsy/ ' swap input(''upper( if swap ='yor swap =' ' break swap the player' door if they wanted to swap if swap =' ' if doorpick = and showgoatdoor = doorpick elif doorpick = and showgoatdoor = doorpick project #