# get the memory address of an object in Python as a hex representation hex_address = hex(id(object_name))