These line of codes are part my program. I'm trying to make a simple calculator.
def num1():
x = input('Enter your first number: ')
if x.isdigit():
return int(x)
else:
num1()
My program works fine until this function call itself and it will return None even i entered an integer.