Solved

When a Python Script Is Running as a Standalone Program

Question 35

Multiple Choice

When a Python script is running as a standalone program, what will the __name__ variable be set to?


A) The variable will hold the name of the script itself.
B) The variable will be set to "__main__".
C) The variable will be set to "standalone".
D) The variable will be set to "None".

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions