코딩테스트/Python

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

짐니♡ 2025. 9. 22. 20:55

def solution(x, n):
    answer = []

    
    for i in range(1,n+1):
        answer.append(x * i)
    
    return answer