8 lines
146 B
Python
8 lines
146 B
Python
# functions.py
|
|
|
|
def gcd(a, b):
|
|
"""Calculate the Greatest Common Divisor of (a, b). """
|
|
while b != 0:
|
|
a, b = b, a % b
|
|
return a
|