Python - Modules and Code Organization
What value does the
__name__ variable hold when a Python script is imported as a module?__name__ variable hold when a Python script is imported as a module?__name__ when importing__name__ is set to the module's name, not "__main__".__name__ is "__main__"; if imported, it is the module name.__name__ when imported = module name [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions