I am very new python programming , while i write the below code inside the if statement the value of a is determined but , after i return to caller , return value is always none , Is there anything missing to return the value inside an if block on a recursive calls .
#! /usr/bin/env python3
def gcd_calc(a, b):
if(b == 0):
print(a)
return a
c= a%b
gcd_calc(b,c)
if __name__ == "__main__":
a, b = map(int, input().split())
if(a<b):
print(gcd_calc(a,b))
else:
print(gcd_calc(b,a))