def Interface():
Number = input("Enter number: ")
Interface()
print(Number)
This is a small simplified snippet of my code which produces:
Traceback (most recent call last): File "C:/Users/Jack/Documents/Python/NumberToText.py", line 78, in print(Number) NameError: name 'Number' is not defined
I underdstand this is because the variable is defined in a function.
What can I do to fix this?