0

Can someone explain this output

def hi(): print("hello") print(hi) ====================================== <function hi at 0x7f36451e1bf8>

25th May 2020, 8:23 PM
sofronis
sofronis - avatar
4 Antworten
+ 1
You haven't called your function, so you're just printing the internal name of the function itself including the memory address.
25th May 2020, 8:24 PM
HonFu
HonFu - avatar
0
@HonFu so how do i get "Hello" as an output
25th May 2020, 8:25 PM
sofronis
sofronis - avatar
0
def hi(): print("hello") hi() // this line
25th May 2020, 8:51 PM
Onur GÖKCEKOCA
Onur GÖKCEKOCA - avatar