Create find_multiples.md

find_multiples added
This commit is contained in:
Animesh
2020-07-27 00:32:34 +05:30
committed by GitHub
parent 42614dd588
commit 08ea7b56e5

View File

@ -0,0 +1,17 @@
---
title: find_multiples
tags: list, beginner
---
Find all the multiples between a number and a limit
Use the range function and step up the same integer to find multiples
```py
def find_multiples(integer, limit):
return list(range(integer,limit+1, integer))
```
```py
find_multiples(5,25) # returns [5, 10, 15, 20, 25]
```