This commit is contained in:
adii1823
2021-10-28 17:38:16 +05:30
parent ee641c189f
commit ef37ce0c4e
46 changed files with 524 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
# functions.py
def gcd(a, b):
"""Calculate the Greatest Common Divisor of (a, b). """
while b != 0:
a, b = b, a % b
return a