About 482 letters
About 2 minutes
Description: Return the identity (ID) of an object.
def id(obj):
'''
Return the identity (ID) of an object
:param obj: An object
:return: The identity (ID) of the object
'''
Example:
print(id('hello world'))
print(id([1, 2, 3, 4, 5]))
print(id(object()))
Created in 5/15/2025
Updated in 5/16/2025