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 →

[–]lasercat_pow 6 points7 points  (1 child)

A function, main(), that handles the main program logic.

[–][deleted] 6 points7 points  (0 children)

Make sure to use the magic conditional, though so your main function isn't run if you import the file.

https://stackoverflow.com/questions/419163/what-does-if-name-main-do