Solved

When a Python Script Is Running as a Standalone Program

Question 21

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents