def invInfo():
initCap = int(input(""))
invYears = int(input(""))
return
def invResult():
if invYears <= 5:
invPercentage = invYears / 2
print("")
return
invInfo()
invResult()
When I input a value in the invYears function and try to use it in the next function, an error occurs saying that the name is not defined. Thanks in advance.