프로그래머스 Lv1 키패드 누르기
풀이 def solution(numbers, hand): answer = '' current_left = [4, 1] current_right = [4, 3] location = {1: [1, 1], 2: [1, 2], 3: [1, 3], 4: [2, 1], 5: [2, 2], 6: [2, 3], 7: [3, 1], 8: [3, 2], 9: [3, 3], 0: [4, 2]} for num in numbers: if num == 1 or num == 4 or num == 7: answer += 'L' current_left = location[num] elif num == 3 or num == 6 or num == 9: answer += 'R' current_right = location[num] else..