- When you declare a value in python, and access its unique identifier both will give same results,
E.g.:
x="ADCAADAFAVVA"
print(id(x))
print(id("ADCAADAFAVVA"))
O/P:
123456789
123456789
But when you apply the unique identfier on a value which is not assigned to any object/ variable, how is it giving the ID ?
E.g.:
print(id("ADadasdaaqdas"))
O/P:
98231527347