2020-05-25python / GCDa few seconds read (About 49 words)python 최대공약수(GCD)최대공약수 greatest common divisor(GCD) 1234567891011121314def finding_gcd(a, b): while(b != 0): result = b a, b = b, a % b return resultdef test_finding_gcd(): number1 = 21 number2 = 12 assert(finding_gcd(number1, number2) == 3) print("테스트 통과!")if __name__ == "__main__": test_finding_gcd()