coding style - where to declare variables

Sharan Basappa sharan.basappa at
Sun Jul 22 08:48:39 EDT 2018

In other programming languages (e.g. C, C++), as a good practice, variables are declared right at the start of the program, irrespective of where it is normally used. What is the practice in Python?

I see that, most of the code, declare variables where it is used and not at the start of the program.

More information about the Python-list mailing list