+ 1

Python Program Structure: How?

What is the recommended or conventional structure of any given Python program? For example, are all classes and functions defined first before the main code, or is it usually done in some other order? I'm previously used to Java programming, and the source code structure there seems to be somewhat different than in Python.

29th Jul 2018, 6:23 PM
Jukka Kuusto
Jukka Kuusto - avatar
1 Réponse
+ 1
usually yes, classes and methods are defined before the main code
30th Jul 2018, 7:35 AM
hinanawi
hinanawi - avatar