Apr-25-2019, 06:25 PM
Hi,
I'm just learning Python and trying to understand best practices
When defining functions for an app, is it right to define all of the functions in a single file? So if i have an app called myapp.py and within this file, I define loads of functions or is there a better way to kinda define the functions outside of the myapp.py file and reference the functions using .\ or something?
Thanks
Tommy
I'm just learning Python and trying to understand best practices
When defining functions for an app, is it right to define all of the functions in a single file? So if i have an app called myapp.py and within this file, I define loads of functions or is there a better way to kinda define the functions outside of the myapp.py file and reference the functions using .\ or something?
Thanks
Tommy