Python Forum

Full Version: How to compile all relevant code and then execute the program
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm creating a program that will require using buttons to travel to different menus, but I'm not sure if I would put all of this code in one file or if I would create each component as a separate file or folder. Any idea on how I'd go about this?
Usually beginners tend to put their code in one file, and as they learn the reason for organization, expand their latest codings to multiple modules, classes, etc.
There is no requirement to use multiple files if you don't want to, so do what makes sense to you. Other languages (such as Java) force you to use different files, so your preference likely depends on your background.