import sys def get_value(val): val_dict = {'JOKER':16, 'joker':15, 'J':11, 'j':11, 'Q':12, 'q':12, 'K':13, 'k':13, 'A':14, 'a':14} if val.isdigit(): return int(val) return val_dict[val] def get_group(lst): if len(lst) == 4 or len(lst) == 2 and lst[0] > 13: return 'bomb' group_dict = {1:'single', ...