मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता १२

Explain the following built-in function. id() - Computer Science

Advertisements
Advertisements

प्रश्न

Explain the following built-in function.

id()

थोडक्यात उत्तर

उत्तर

Function Description Syntax Example
id() id( ) Return the "identity" of an object. i.e. the address of the object in memory.  id (object)
x=15
 y='a' 
print ('address of x is :',id (x)) 
print ('address of y is :', id (y)) 
Output: 
address of x is : 1357486752 
address of y is : 13480736
shaalaa.com
Introduction to Python Functions
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 7: Python functions - Evaluation [पृष्ठ ११३]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
पाठ 7 Python functions
Evaluation | Q 3. (a) | पृष्ठ ११३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×