def solution(numbers, hand): answer = '' left = '*' right = '#' for num in numbers : if num % 3 == 1 : answer += 'L' left = num elif num != 0 and num % 3 == 0 : answer += 'R' right = num else : temp = [[i, i+1, i+2] for i in [1, 4, 7]] temp2 = [] temp.append(['*', 0, '#']) if num >= 1 and num