I am entering two numbers from the user to get the GCD.
Error showing at return gcd(a,a%b)
Attach is the code
def gcd(a,b):
if b==0:
return a
return gcd(a,a%b)
a = input("Enter first number: ")
b = input("Enter second number: ")
res = gcd(a,b)
print("GCD of {1} and {2} is {3}".format(a, b,res))
TypeError: not all arguments converted during string formatting