<jupyter_start><jupyter_text>2021년 4월 10일 토요일 Programmers - x만큼 간격이 있는 n개의 숫자 (Python) 문제 : https://programmers.co.kr/learn/courses/30/lessons/12954 블로그 : https://somjang.tistory.com/entry/Programmers-x%EB%A7%8C%ED%81%BC-%EA%B0%84%EA%B2%A9%EC%9D%B4-%EC%9E%88%EB%8A%94-n%EA%B0%9C%EC%9D%98-%EC%88%AB%EC%9E%90-Python  첫번째 시도<jupyter_code>def solution(x, n):
    minus = 1
    
    if x < 0:
        minus = -1
        
    answer = [x * minus for x in range(x * minus, x * minus * n + 1, x * minus)]
    
    return answer<jupyter_output><empty_output><jupyter_text>두번째 시도<jupyter_code>def solution(x, n):
    minus = 1
    
    if x < 0:
        minus = -1
        
    answer = [x + (x*i) for i in range(n)]
    
    return answer<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup