dic = { '3' : 1, '4' : 2, '5' : 3, '6' : 4, '7' : 5, '8': 6, '9' : 7, '10' : 8, 'J' : 9, 'Q' : 10, 'K' : 11, 'A' : 12, '2' : 13, 'joker' : 14, 'JOKER' : 15 } def isboom(lst): if len(lst) == 4 and len(set(lst)) == 1: return True return False while True: try: ...