Glossary: Coding with AI Assistants
if __name__ == "__main__":
Also written: __name__, __main__
A Python check whose indented code runs only when you run the file directly, not when another file imports it. Assistants use it for demos and start-up code.