Differentiate between .py and .pyc files?
Answer / Arti
.py is a source code file in Python, containing human-readable Python instructions. .pyc (Python Compiled Code) is a byte-compiled version of the .py file, created by the Python interpreter when you run the script. The .pyc files are meant to make the program run faster because they don't have to be recompiled each time.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is python the future of programming?
What is python inheritance?
What is pycharm used for?
How do you create a project in python?
What is list comprehension? Give an example.
What packages in the standard library, useful for data science work, do you know?
What is the output of print str * 2 if str = 'hello world!'?
How do you sort a list in python?
When to use list vs. tuple vs. dictionary vs. set?
How would you define a block in python?
When python was founded?
What is type conversion in python?