Just a quick question about main()
Ian Kelly
ian.g.kelly at gmail.com
Fri Oct 27 23:43:06 EDT 2017
On Oct 27, 2017 5:38 PM, "Ian Kelly" <ian.g.kelly at gmail.com> wrote:
In addition to what others have answered, if the code in question has any
variables then I'll prefer to put it inside a function and call the
function. This ensures that the variables are local and not going. It's a
minor code hygiene point, but a good practice in my opinion.
s/going/global/ :P
More information about the Python-list
mailing list