317 B
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)