d = {'3':3, '4':4, '5':5, '6':6, '7':7, '8':8, '9':9, '10':10, 'J':11, 'Q':12, 'K':13, 'A':1, '2':2} def f(nums, target): if len(nums) == 1 and d[nums[0]] == target: res.append(nums[0]) return True for i in range(len(nums)): a = nums[i] b = nums[:...