x만큼 간격이 있는 n개의 숫자1 lv1-x만큼 간격이 있는 n개의 숫자 (python, 파이썬) """ 1번: 나의 풀이(map 사용) """ def solution(x, n): tmp = [i+1 for i in range(n)] return list(map(lambda t: t*x, tmp)) """ 2번: 다른 사람의 풀이 """ def solution2(x, n): return [x*(i+1) for i in range(n)] 2020. 10. 22. 이전 1 다음