which of the following is the use of id() FUNCTIONS IN python
Answers
Answered by
5
The id() function returns a unique id for the specified object. All objects in Python has its own unique id. The id is assigned to the object when it is created.
PLEASE MARK AS BRAINLIEST.........
Answered by
0
Answer:
Returning the unique id of the specified object is the use for id function in Python.
Explanation:
- An id is the object's unique identification address and is different for every time the program is run.
- On the creation of an object(name, class, string etc.) this unique id is assigned to it.
- The syntax for this function to be run is id(object).
- Integers have a fixed id and it does not change every time the program is run.
- Id() is an inbuilt function in Python.
#SPJ3
Similar questions