10th Dec 2017, 5:47 AM
Nithiwat
Nithiwat - avatar
+ 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.
10th Dec 2017, 5:51 AM
David Carroll
David Carroll - avatar
+ 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?
10th Dec 2017, 5:49 AM
ChaoticDawg
ChaoticDawg - avatar
+ 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.
10th Dec 2017, 5:55 AM
ChaoticDawg
ChaoticDawg - avatar
+ 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 .
10th Dec 2017, 5:58 AM
Rishabh Khurana
Rishabh Khurana - avatar
+ 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.
10th Dec 2017, 6:02 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
@ChaoticDawg thnx for telling , I got it
10th Dec 2017, 6:05 AM
Rishabh Khurana
Rishabh Khurana - avatar
0
it is used for CSS purpose , an id in html helps CSS to identify that section.
10th Dec 2017, 5:43 AM
Rishabh Khurana
Rishabh Khurana - avatar