<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def gcd2(a, b):
 """Greatest common divisor using Euclid's algorithm."""

  while a:
    a, b = b%a, a
  return b