find the queen of hearts after cards have been swapped around (in the real-life versionthe scammer palms the queen of hearts so you always lose more info at view this code at tagslargecard gamegame"" import randomtime set up the constants num_swaps (!try changing this to or delay (!try changing this or the card suit characters hearts chr( character is ' diamonds chr( character is ' spades chr( character is ' clubs chr( character is ' list of chr(codes is at the indexes of -card list left middle right def displaycards(cards) """display the cards in "cards"which is list of (ranksuit tuples "" rows [''''''''''stores the text to display for icard in enumerate(cards) ranksuit card the card is tuple data structure rows[ +___ print the top line of the card rows[ +'|{format(rank ljust( ) rows[ +'{format(suit rows[ +'| {}format(rank rjust( ' ') print each row on the screen for in range( ) print(rows[ ] def getrandomcard() """returns random card that is not the queen of hearts "" while truemake cards until you get non-queen of hearts rank random choice(list(' jqka'[' '] suit random choice([heartsdiamondsspadesclubs] return the card as long as it' not the queen of hearts if rank !'qand suit !hearts return (ranksuit project #