I wonder what is the Python’s execution order when the interpreter executes statements in a script file? Is it from top to bottom ? I know from my experiment and other party’s documentation like this showing that statements are executed from top to bottom in a script file, but I did not find such clear explanation or documentation from the Python’s official documentation site, would someone having more knowledge on this help to confirm that ?
I think if you know this aspect of Python clearly, it helps you better reorganizing the functions or variables defining order in a file and also you are able to know the variables defined overwritten feature.