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
πŸ’¬ Discuss
βœ… Correct 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.

Explanation by: Mr. Dubey
each object in python has a unique id. the id() function returns the object’s id.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
359
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate