Snippets tagged “main-program”
1 snippet uses this tag.
- What does if __name__ == "__main__": do?Python
The special __name__ variable in Python is a string that contains the name of the current module. If the module is the main program, __name__ will be set to the string "__main__".