|
|
|
|
|
by NikolaNovak
1173 days ago
|
|
Agreed; so the 20 books that start with "A variable is like an imaginary box you can put stuff into!", and then lingers on the concept with 4 pages of illustrations and analogies from your childhood, is not useful to me; whereas a book that tells me quickly about global and local scopes in Python, whether it passes variables by values or references, if variables are pointers or not, etc; would be lovely :) |
|
In python a variable is just a name. Assigments change what object this name references. But nobody is ever going to change which object this name references, unless you do it yourself. They can mutate the object, but not the name, if that makes sense.