코딩테스트/프로그래머스
def solution(arr): answer = [arr[0]] for i in range(1,len(arr)): if arr[i-1] != arr[i]: answer.append(arr[i]) return answer