If I declare a function and pass a value to that function that is working fine
def aFunction(num):
print("This is a function", num)
print(aFunction(100))
Output
This is a function 100
If I declare another function inside that function and pass the same value it prints None.
def aFunction(num):
print("This is a function", num)
def anotherFunction(num):
print("This is another function", num)
print(aFunction(100))
Output
This is a function 100
None