Question: The Python variable __name__ is a; Built-in global variable that contains the word '__main__' when out script is executed directly and is empty when our
The Python variable __name__ is a;
| Built-in global variable that contains the word '__main__' when out script is executed directly and is empty when our script has been imported into another script. |
| Built-in global variable that contains either the name of the script file, name of the current module, or the word __main__ |
| Built-in variable that contains the name of the last function called. |
| Built-in local variable that contains the name of the current function and the word '__main__ when no not in a function. |
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
