Python module NAME AND MAIN

what is name and main ?
is it a string?
and how it works?

Every module in python has a special attribute called __ name__ . The value of __ name__ attribute is set to __ main __ when module run as main program. Otherwise the value of __ name__ is set to contain the name of the module.