Skip to content

Conversation

@thiru15
Copy link
Contributor

@thiru15 thiru15 commented Jul 14, 2019

Improved code quality and added comments.

Improved code quality and added comments.
@cclauss
Copy link
Member

cclauss commented Jul 14, 2019

Try running: python3 -m doctests -v find_lcm.py

The doctests are not found because you need >>><space>

10
>>find_lcm(12,76)
228
"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

def find_lcm(num_1, num_2):
    """Find the least common multiple of two numbers.
       >>> find_lcm(5,2)
       10
       >>> find_lcm(12,76)
       228
    """

@cclauss cclauss merged commit 9f8953d into TheAlgorithms:master Jul 18, 2019
stokhos pushed a commit to stokhos/Python that referenced this pull request Jan 3, 2021
* Update find_lcm.py

Improved code quality and added comments.

* Make the doctests work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants