What goes in the blank?
import math # greatest common divisor: (12, 18) -> 6 g = math.____(a, b)
Answer: gcd
math.gcd implements Euclid's algorithm in the standard library.
Play Problem Solving ▸
import math # greatest common divisor: (12, 18) -> 6 g = math.____(a, b)
Answer: gcd