The python interpreter compiles the .py script file and saves the results of the compilation to the __pycache__ directory.
When the project is executed again, if the interpreter identifies that the .py script has not been modified, it skips the compile step and runs the previously generated .pyc file stored in the __pycache__ folder.