print('three-card monteby al sweigart al@inventwithpython com' print( print('find the red lady (the queen of hearts)keep an eye on how' print('the cards move ' print( show the original arrangement cards [(' 'hearts)getrandomcard()getrandomcard() random shuffle(cardsput the queen of hearts in random place print('here are the cards:' displaycards(cards input('press enter when you are ready to begin ' print the swaps for in range(num_swaps) swap random choice([' - '' - '' - '' - '' - '' - '] if swap =' - ' print('swapping left and middle ' cards[left]cards[middlecards[middle]cards[left elif swap =' - ' print('swapping middle and right ' cards[middle]cards[rightcards[right]cards[middle elif swap =' - ' print('swapping left and right ' cards[left]cards[rightcards[right]cards[left elif swap =' - ' print('swapping middle and left ' cards[middle]cards[leftcards[left]cards[middle elif swap =' - ' print('swapping right and middle ' cards[right]cards[middlecards[middle]cards[right elif swap =' - ' print('swapping right and left ' cards[right]cards[leftcards[left]cards[right time sleep(delay print several new lines to hide the swaps print('\ ask the user to find the red lady while truekeep asking until leftmiddleor right is entered print('which card has the queen of hearts(left middle right)' guess input(''upper( get the index in cards for the position that the player entered if guess in ['left''middle''right'] if guess ='left' guessindex elif guess ='middle' guessindex elif guess ='right'three-card monte