[Python] Python: How many objects were created in variable assignments?

Discussão em 'Python' iniciado por Stack, Agosto 27, 2025.

  1. Stack

    Stack Membro Participativo

    I found a very strange interview question, at least for me.

    If we declare the following variables, how many objects were created?

    a=300, b=300, c=5, d=5

    • Can someone please explain this?
    • I am not sure to which segment in Python this is related to?
    • Is it maybe to memory management in Python?

    Continue reading...

Compartilhe esta Página