time.sleep(2) print("\nDealer's cards: ") #Dealer draws for _ in range(2): dl.hand.append(mycards.draw()) #Print Dealer's card if (len(dl.hand) == 2): print(mycards) else: #Hidden card print("[///////]") time.sleep(2) #Let know how much does de user have in his hand (p1sum1, p1sum2) = mycards.sum(p1.hand, p1.name) print(f"\n////////////{p1.name}'s Turn////////////") #Now the player can draw more cards or stop while (hit): if (p1sum1 == 21 or p1sum2 == 21): hit = False p1bj = True print("21!!!") else: while (h.upper() != "Y" and h.upper() != "N"): h = input("\nDo you want another card?(Y/N): ") if (h.upper() == "Y"): p1.hand.append(mycards.draw()) p1.print_hand() (p1sum1, p1sum2) = mycards.sum(p1.hand, p1.name) time.sleep(2)