What does __ name __ mean in python?
Answer / Prem Chandra Verma
__name__ is a built-in variable in Python that returns the name of the current module (script or file). If the script is run directly, its value is set to __main__, otherwise it's the name of the imported module.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to get current directory using python?
What is flask?
Does every class need a constructor?
What is jinja python?
What is instance method?
Is python sorted stable?
Which methods of python are used to determine the type of instance and inheritance?
How do you concatenate strings in python?
Rules for local and global variables in python?
Explain me what are the principal differences between the lambda and def?
With python, how do you find out which directory you are currently in?
What are the built-in types of python?