commit-live-students / 059-divisible-by-two-numbers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Write a function to find numbers divisible by two numbers.

Define a function that takes 3 parameters(all positive integers) in this order: num1, num2, end_num

Function should return a list of all numbers less than end_num that are divisible by both num1 and num2.

Example:

Input:

2, 3, 13

Output:

[6, 12]

Challenge: Write the function without using for-loop.

About


Languages

Language:Python 100.0%