Python id() Function
Description
id() The function returns the unique identifier of an object, which is an integer.
In CPython id() The function is used to obtain the memory address of an object.
Syntax
id syntax:
id([object])
Parameter Description:
- object -- the object.
Return Value
Returns the memory address of the object.
Example
The following examples demonstrate how to use id:
a
=
'
runoob
'
id
(
a
)
4531887632
b
=
1
id
(
b
)
140588731085608
Python built-in function