0
What is the standard way to begin code in python?
3 Answers
+ 2
Depends on what exactly you're making but if it's an runnable application I usually start with something like this:
def main():
# my app goes here
if __name__ == '__main__':
main()
This has the benefit of being executable and safe to import for testing if needed.
0
I want to create a front page for the app, where I can put username in.
0
I usually mark out the Copyright Status of the document I'm writing, not that anyone is going to read it or anything... but, y'know.
I like to be official... a lot...
But in all seriousness. I am into text games these days, so I'd have a main title screen in a loop. But I'd define all the 'areas' in def-statements first. :)
Good Luck!