from collections import namedtuple
from itertools import product
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')
CmZyb20gY29sbGVjdGlvbnMgaW1wb3J0IG5hbWVkdHVwbGUKZnJvbSBpdGVydG9vbHMgaW1wb3J0IHByb2R1Y3QKCkNhcnRhID0gbmFtZWR0dXBsZSgnQ2FydGEnLCBbJ2ZhY2UnLCAnbmFpcGUnXSkKCmZhY2VzID0geydBJywgJzInLCAnMycsICc0JywgJzUnLCAnNicsICc3JywgJzgnLCAnOScsICcxMCcsICdKJywgJ1EnLCAnSyd9Cm5haXBlcyA9IHsnTycsICdQJywgJ0MnLCAnRSd9CgpiYXJhbGhvID0gW0NhcnRhKGZhY2UsIG5haXBlKSBmb3IgZmFjZSwgbmFpcGUgaW4gcHJvZHVjdChmYWNlcywgbmFpcGVzKV0KCnByaW50KCdTZXUgYmFyYWxobyBwb3NzdWknLCBsZW4oYmFyYWxobyksICdjYXJ0YXMnKQ==