Page 84 - thinkpython
P. 84

62                                                   Chapter 6. Fruitful functions

                  Write a function called gcd that takes parameters a and b and returns their greatest common divisor.

                  Credit: This exercise is based on an example from Abelson and Sussman’s Structure and Interpre-
                  tation of Computer Programs.
   79   80   81   82   83   84   85   86   87   88   89