[프로그래머스] x만큼 간격이 있는 n개의 숫자

박신희·2022년 4월 7일
0
post-thumbnail

🤜 풀이

def solution(x, n):    
    return [x*i for i in range(1,n+1)] 

최대한 변수를 안쓰고 간단하게 구현해봤다.

profile
log my moments 'u')/

0개의 댓글