Files
30-seconds-of-code/snippets/arithmetic_progression.md
Animesh 10fd98764e Updated the indent to 2 spaced
Updated everything according to the comments
2020-07-28 16:29:25 +05:30

315 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)