QuestionQ55

VerifiedPython Basics

What is the value of the __name__ variable when the program gpyc.py is executed as a standalone program?

Explanation

Python assigns __name__ the value "__main__" when a module is run directly as the top-level program.

Community Discussion

No comments yet. Be the first to start the discussion!