Q.

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» A. id returns the identity of the object
Explanation: each object in python has a unique id. the id() function returns the object’s id.
3.8k
0
Do you find this helpful?
44

Discussion

No comments yet