https://school.programmers.co.kr/learn/courses/30/lessons/181854 원본 def solution(arr, n): for i,v in enumerate(arr): if len(arr) % 2 == 1 and i % 2 == 0: arr[i] += n else: if len(arr) % 2 == 0 and i % 2 == 1: arr[i] += n return arr리팩토링 def solution(arr, n): is_odd_length = len(arr) % 2 == 1 for i, v in enumerate(arr): ..