Why this function return nothing, and it return the output only if I call the method as >> print(func)
def func():
return "Hello, python"
func()
Answers
Answered by
2
Answer:
The output will be
Hello , Python
Answered by
4
Answer:
The answer is :
<function at (hexadecimal) >
Explanation:
Because it is not called .
There is a difference between
print(func) .
And,
print(func())
Similar questions