mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-25 17:32:36 +08:00
psf/black code formatting (#1277)
This commit is contained in:

committed by
Christian Clauss

parent
07f04a2e55
commit
9eac17a408
@ -1,5 +1,6 @@
|
||||
# https://en.wikipedia.org/wiki/Euclidean_algorithm
|
||||
|
||||
|
||||
def euclidean_gcd(a, b):
|
||||
while b:
|
||||
t = b
|
||||
@ -7,6 +8,7 @@ def euclidean_gcd(a, b):
|
||||
a = t
|
||||
return a
|
||||
|
||||
|
||||
def main():
|
||||
print("GCD(3, 5) = " + str(euclidean_gcd(3, 5)))
|
||||
print("GCD(5, 3) = " + str(euclidean_gcd(5, 3)))
|
||||
@ -14,5 +16,6 @@ def main():
|
||||
print("GCD(3, 6) = " + str(euclidean_gcd(3, 6)))
|
||||
print("GCD(6, 3) = " + str(euclidean_gcd(6, 3)))
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
Reference in New Issue
Block a user