Nov-08-2017, 06:47 PM
In python, imports are normally expected at the top of the file. Not all languages have that convention.
Unless you don't plan on ever showing your code to someone else, it's normally best to try to stick to conventions, to make it as easy as possible for someone else to understand quickly.
Unless you don't plan on ever showing your code to someone else, it's normally best to try to stick to conventions, to make it as easy as possible for someone else to understand quickly.