Quiz · Modules, files and generators · lesson 3 of 12Quiz — __name__What is __name__, and when does it equal "__main__"?[A]Every module has a __name__. When imported, __name__ holds the module's name. When the file is run directly, Python sets __name__ to "__main__", enabling the if __name__ == "__main__": guard.[B]__name__ equals "__main__" when a module is imported by another file, while running the file directly instead sets __name__ to the file's own name, without the .py extension at the end.[C]__name__ is always the string "__main__" in every module, both when imported and when run directly, so the guard runs its block on import too and there is no way at all to tell a file run directly from an imported one.[D]__name__ always equals the file's name on disk without the .py extension, no matter how the file is used, so the if __name__ == "__main__": check can never be true and the block under it never runs at all.Subscribe to take the courseThe course is free. Sign in with Telegram and subscribe to the channel to open every lesson.Continue with TelegramSign in another way← BackThe __name__ checkNext →Files and with