Computer Science, asked by XJEFFERSON0101, 3 months ago

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 purveshKolhe
2

Answer:

The output will be

Hello , Python

Answered by myd25335
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