Find least common multiple #
Write a function that takes two integers as input and calculates the least common multiple (LCM) of all the numbers between those two integers, inclusive. The LCM is the smallest positive integer that is divisible by all the numbers in the given range.
For example, if the input is the numbers 1 and 5, the least common multiple of all numbers 1, 2, 3, 4, and 5 is 60.
Tests #
find_lcm([1, 5])should return60find_lcm([5, 1])should return60find_lcm([3, 10])should return2520find_lcm([1, 1])should return1find_lcm([2, 7])should return420
Getting Started with Python
Data Types
Python Functions
Statements in Python
Basic Debugging in Python
Basic Algorithm
Object-Oriented Programming
Error Handling
Intermediate Algorithm
Python Modules