• Python question of the day

    Which of the following built-in function of python will return the physical memory address of the object being referenced?
     id()
     mem()
     address()
     loc()
    Explanation:
    In python, built-in function id() returns the address of the object being referenced. Its return value represents the physical memory location in which that object is stored. The reurn vlaues of id() function is "an integer which is guaranteed to be unique and constant for this object during its lifetime."


    Top 100 python interview questions:



  • Apply for an intership with Datai Analytics by filling your email, name and phone number