Thursday , September 19 2024

A predefined Python variable that stores the current module name is called:

Questions BankCategory: Python Essentials 2A predefined Python variable that stores the current module name is called:
A predefined Python variable that stores the current module name is called:

  • __modname__
  • __mod__
  • __module__
  • __name__

Explanation: The __name__ variable (two underscores before and after) is a special Python variable. When a module is imported, it will contain the module’s filename.

More Questions: Python Essentials 2 – Module 1 Test