How to get memory address of a function in Python

1 Answer

0 votes
def sum(x, y):
    return x + y


x = 3
y = 9

print(id(sum))



'''
run:

140278658432592

'''

 



answered Aug 18, 2021 by avibootz

Related questions

1 answer 284 views
1 answer 251 views
2 answers 381 views
2 answers 231 views
...