from collections import namedtuple
from itertools import product
from random import sample
Carta = namedtuple('Carta', ['face', 'naipe'])
faces = {'A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K'}
naipes = {'O', 'P', 'C', 'E'}
baralho = [Carta(face, naipe) for face, naipe in product(faces, naipes)]
print('Seu baralho possui', len(baralho), 'cartas')
mao = sample(baralho, 2)
print('Mão do jogador:', mao)
ZnJvbSBjb2xsZWN0aW9ucyBpbXBvcnQgbmFtZWR0dXBsZQpmcm9tIGl0ZXJ0b29scyBpbXBvcnQgcHJvZHVjdApmcm9tIHJhbmRvbSBpbXBvcnQgc2FtcGxlCgpDYXJ0YSA9IG5hbWVkdHVwbGUoJ0NhcnRhJywgWydmYWNlJywgJ25haXBlJ10pCgpmYWNlcyA9IHsnQScsICcyJywgJzMnLCAnNCcsICc1JywgJzYnLCAnNycsICc4JywgJzknLCAnMTAnLCAnSicsICdRJywgJ0snfQpuYWlwZXMgPSB7J08nLCAnUCcsICdDJywgJ0UnfQoKYmFyYWxobyA9IFtDYXJ0YShmYWNlLCBuYWlwZSkgZm9yIGZhY2UsIG5haXBlIGluIHByb2R1Y3QoZmFjZXMsIG5haXBlcyldCgpwcmludCgnU2V1IGJhcmFsaG8gcG9zc3VpJywgbGVuKGJhcmFsaG8pLCAnY2FydGFzJykKCm1hbyA9IHNhbXBsZShiYXJhbGhvLCAyKQoKcHJpbnQoJ03Do28gZG8gam9nYWRvcjonLCBtYW8p