SyntaxFix
Write A Post
Hire A Developer
Questions
According to the manual, in CPython id() is the actual memory address of the variable. If you want it in hex format, call hex() on it.
id()
hex()
x = 5 print hex(id(x))
this will print the memory address of x.