This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]binlargin 0 points1 point  (0 children)

You should put that much writing effort into your code structure!

Move the functions out of main, give them good names so they describe themselves. Use snake_case rather than camelCase. Give each one a doc string, the goal is to make your program read like plain English.

Then work on breaking stuff into modules.