What is the difference between py and pyc files in Python
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
You must login to ask question.
The code (from .py file) gets compiled into byte code and save it as a .pyc file.
If you open any py file, you can see the Python code which is human readable. Whereas, pyc file contains byte code. You can not read it simply.