Skip to content

Update find_lcm.py #1019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 18, 2019
Merged

Update find_lcm.py #1019

merged 2 commits into from
Jul 18, 2019

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