1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# assessment A # student id: 4 def gcd(x,y): if x > y: small = y else: small = x for i in range(1, small+1): if((x % i == 0) and (y % i == 0)): g = i return g # calling function with parameters and printing it out print(gcd(8,12))