Although both files are saved byte code, but .pyc file is a compiled version of Python file that has platform-independent byte code, so we can execute it on any supported file format .pyc platform. Python automatically generated to optimize its performance (load time, rather than operating speed)
This article first appeared in Python black hole net , blog updated simultaneously Park