__main__ in PythonIn Python, __main__ is an identifier used to reference the current file context. When a module is read from standard input, a script, or from an interactive prompt, its __name__ is set equal to __main__.
Suppose we create an instance of a class called CoolClass. Printing the type() of the instance will result in:
<class '__main__.CoolClass'>
This means that the class CoolClass was defined in the current script file.