Skip to content
Related Articles

Related Articles

Python | Functions | Question 6
  • Last Updated : 29 Jan, 2016

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)

Explanation: Each object in Python has a unique id. The id() function returns the object’s id.

Quiz of this Question
Please comment below if you find anything wrong in the above post

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :