Python module with name __main__.py doesn't run while imported
Advertisements Somebody asked me a question and I honestly didn’t try it before, So it was interesting to know what exactly happens when we name a module __main__.py. So I named a module __main__.py, imported it in another file with name test.py. Surprisingly when I tried to run test.py it prints nothing and none of… Read More Python module with name __main__.py doesn't run while imported