whether objects are being changed : id « Buildin Function « Python Tutorial






x = 'a string'
print id(x)
x = 'another string'
print id(x)
i = 0
print id(i)
i = i + 1
print id(i)








13.24.id
13.24.1.access the identity
13.24.2.whether objects are being changed
13.24.3.lists can be modified without replacing the original object
13.24.4.Displaying an object's location, type and value.