Aug-23-2020, 07:16 PM
You do not specify a return value for Output, so it returns None. Your arr is not empty, it contains None.
print does exactly what it says; print. It does not change a variable. It does not return a value from a function. print just prints something to stdout or stderr or to a file.
Your output function doesn't make any sense. Not only does it not return a value, but I cannot thing of what kind of value it would return.
What do you want to do? Explain that and you will get a better answer.
print does exactly what it says; print. It does not change a variable. It does not return a value from a function. print just prints something to stdout or stderr or to a file.
Your output function doesn't make any sense. Not only does it not return a value, but I cannot thing of what kind of value it would return.
What do you want to do? Explain that and you will get a better answer.