프로그래머스. x만큼 간격이 있는 n개의 숫자 파이썬 풀이

minan·2021년 6월 28일
0

프로그래머스

목록 보기
68/92

프로그래머스. Level 1. x만큼 간격이 있는 n개의 숫자 파이썬 풀이

문제링크 https://programmers.co.kr/learn/courses/30/lessons/12954

def solution(x, n):
    
    return [x*i for i in range(1, n+1)]
profile
https://github.com/minhaaan

0개의 댓글