[Programmers] 같은 숫자는 싫어
Python def solution(arr): answer = [] for i in range(len(arr)): if i == 0: answer.append(arr[i]) elif arr[i] != arr[i-1]:...
Python def solution(arr): answer = [] for i in range(len(arr)): if i == 0: answer.append(arr[i]) elif arr[i] != arr[i-1]:...
Python ~~~python def solution(n): num = set(range(2, n + 1))
Python def solution(s): if len(s) % 2 != 0: return s[int(len(s)/2)] else: return s[int(len(s)/2) - 1:int(len(s)/2) + 1]
Python def solution(n): answer = '' for i in range(n): if i % 2 == 0: answer += '수' else: answer += '박' ...
Python def solution(seoul): for i in range(len(seoul)): if seoul[i] == 'Kim': return f'김서방은 {i}에 있다'