nums = ['3','4','5','6','7','8','9','10', 'J','Q','K','A','2','joker','JOKER'] hashDict = {} for idx, num in enumerate(nums): hashDict[num] = idx def solution():  ...