Differentiate between .py and .pyc files?



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

Post New Answer

More Python Interview Questions

Is python the future of programming?

1 Answers  


What is python inheritance?

1 Answers  


What is pycharm used for?

1 Answers  


How do you create a project in python?

1 Answers  


What is list comprehension? Give an example.

2 Answers  


What packages in the standard library, useful for data science work, do you know?

1 Answers  


What is the output of print str * 2 if str = 'hello world!'?

1 Answers  


How do you sort a list in python?

1 Answers  


When to use list vs. tuple vs. dictionary vs. set?

1 Answers  


How would you define a block in python?

1 Answers  


When python was founded?

1 Answers  


What is type conversion in python?

1 Answers  


Categories