Which of the following is the use of id() function in python?
(a) Id() returns the identity of the object
(b) Every object doesn’t have a unique ID
(c) All of the mentioned
(d) None of the mentioned
Answer:
The id( ) function is an in-built function which returns a unique id for the specified object. All objects in python has its own unique id.
So, the correct answer is (a).