Using Python Programming Language

def choiceTest(s):
valid = set(‘0123456789 ‘)
return set(s).issubset(valid)
def gcdRecursive(num1, num2):
if num2 == 0:
return num1
else:
return gcdRecursive(num2, (num1%num2))
def gcd(num1,…Engineering Technology