Can global variable be passed into Python function?
marko at pacujo.net
Fri Feb 21 13:52:45 CET 2014
Ned Batchelder <ned at nedbatchelder.com>:
> Man, do I hate this idea that Python has no variables. It has
> variables (names associated with values, and the values can change
> over the course of the program),
In classic functional programming, the values of variables can't change
but they are still called variables (even though "parameters" might be
> they just don't work the same as C or Fortran variables. In fact, they
Apart from a fact that a C variable has an address (references are
first-class objects, if you will), I really don't see a difference
between a C variable and a Python variable.
More information about the Python-list