Find greatest common divisor
# https://stackoverflow.com/questions/691946/short-and-useful-python-snippets def gcd(a, b): while(b): a, b = b, a % b return a print gcd (54, 24)