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 278 views
1 answer 247 views
2 answers 378 views
2 answers 222 views
...