welcome to Bytes
Bytes Easy way to learn Python in Tamil
Bytes Python Tutorial
_name_ (A Special variable) in Python Since there is no main() function in Python,
when the command to run a python program is given to the interpreter,
the code that is at level 0 indentation is to be executed.
However, before doing that, it will define a few special variables.
_name_ is one such special variable.
If the source file is executed as the main program, the interpreter sets the _name_ variable to have a value “__main__”.
If this file is being imported from another module, _name_ will be set to the module’s name.
_name_ is a built-in variable which evaluates to the name of the current module.
In questa pagina del sito puoi guardare il video online if __name__ == __'main'__ : | Name Variable in Python | Python Tutorial for Beginners della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Bytes 10 novembre 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 651 volte e gli è piaciuto 27 spettatori. Buona visione!