If __name__ '__main__' in Python scripts in less than 128 words

When writing a Python module there is no hand method, for example the script stade.py

def players():
    print ("Go blues")

If we start the script "python stade.py" we get "Go blues" the function is started.

If I create a script championnat.py that mattersstade.py

stadium import

def equipe():
    print ("Equipe")

You get by starting "python championnat.py"

championnat.py python 
Go blues

Here we consider that the players function of the stadium module is started.

To avoid this, we can change the script stade.py:

def players():
    print ("Go blues")
If __name__ '__main__'