Just a quick question about main()

Ian Kelly ian.g.kelly at gmail.com
Fri Oct 27 23:38:18 EDT 2017


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.



More information about the Python-list mailing list