A string corresponding to the filename of the module or current file.
__main__
The default built-in.
print(__name__) # __main____somemodulename__
import animals
print(animals.__name__) # animalsA string corresponding to the filename of the module or current file.
__main__The default built-in.
print(__name__) # __main____somemodulename__import animals
print(animals.__name__) # animals