# ================================================= shuffling Import Random NUM = [ ' A ' , ' 2 ' , ' . 3 ' , ' . 4 ' , ' . 5 ' , ' . 6 ' , ' . 7 ' , ' . 8 ' , ' . 9 ' , ' 10 ' , ' J ' , ' Q ', 'K ' ] types = [ ' ♠ ' , ' ♥ ' , ' ♦ ' , ' ♣ ' ] Cards = [] # which is stored a list of all the cards for I in types: for J in NUM: cards.append (I + J ) random.shuffle (Cards) # the card lists all upset Print (Cards) Print ( " ============================= ================ " ) #================================================== = licensing Player = [[], [], [], []] for Y in Range (. 4 ): for X in Range (Y, 52,4 ): Player [Y] .append (cards [X]) Print ( " players " + str (the y-) + " card is: " + str (Player [the y-])) Print ( " ===================== ======================== " ) # ============= RES = types [the random.randint (0, . 3 )] Print ( ' comprising ' , RES,' Players will win ' ) for z in the Range (4 ): RDC = Player [z] [random.randint (0,12 )] Print ( ' players get cards is: ' , RDC) IF RDC [0] == RES: Print ( ' win ' ) the else : Print ( ' lose ' )