Files
30-seconds-of-code/snippets/arithmetic_progression.md
2020-07-28 16:27:33 +05:30

317 B

title, tags
title tags
arithmetic_progression math, beginner

Find all the multiples between a number and a limit.

Use the range function and step up the same integer to find multiples.

def find_multiples(integer, limit):
    return list(range(integer,limit+1, integer))
find_multiples(5,25)