Skip to content

Instantly share code, notes, and snippets.

View sefacangenc's full-sized avatar
🎯
Focusing

sefa can genc sefacangenc

🎯
Focusing
View GitHub Profile
@sefacangenc
sefacangenc / gcd_and_lcm.py
Created June 18, 2020 19:41 — forked from endolith/gcd_and_lcm.py
GCD and LCM functions in Python for several numbers
# Greatest common divisor of 1 or more numbers.
from functools import reduce
def gcd(*numbers):
"""
Return the greatest common divisor of 1 or more integers
Examples
--------