Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Python | Functions | Question 6

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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

My Personal Notes arrow_drop_up
Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads