+ 26
+ 5
Referencing the Python Documentation:
- https://docs.python.org/2/library/functions.html#id
id(object)
--------------
Return the âidentityâ of an object. This is an integer (or long integer) which is guaranteed to be unique and constant for this object during its lifetime. Two objects with non-overlapping lifetimes may have the same id() value.
CPython implementation detail: This is the address of the object in memory.
+ 2
Given that the question is in Python, it doesn't necessarily have anything to do with CSS/HTML.
I.E. It could have something to do with a user id.
Can you post the code?
+ 1
It's exactly as @Nithiwat, @David, and @James have all posted.
https://docs.python.org/3.6/library/functions.html#id
It just returns a unique integer id number for that python object.
+ 1
oh OK @tauseef hilal , I don't know much abt python , I hope someone explanation will be OK đand @ChaoticDawg where it is given which question belong to which category? , it will be a nice thing to me to know from next time .
+ 1
@Rishabh it's not always given as some people often omit it from their post, but in this case if you check the tags in the post there is one for python and one for functions.
+ 1
@ChaoticDawg thnx for telling , I got it
0
it is used for CSS purpose , an id in html helps CSS to identify that section.