The name and main special methods in Python
2 min readJan 26, 2023
- The main function:
main()
- Usually, python files run top to bottom. With the
main
function called, the whole file compiles first but starts to execute at themain
point of entry. main
can take parameters if needed- Usually called at the end of the code after the code file is defined