Generation

translateSat, 21 Jan 2023

"игра" очко с показанием карт

from random import shuffle deck = ['A', 2, 3, 4, 5, 6, 7, 8, 9, 10, 'J', 'Q', 'K'] * 4 shuffle(deck) hand = deck[:2] print('Вы вытянули:', hand)

Questions about programming?Chat with your personal AI assistant