Back to Browse

Python interview question #10: What are .pyc files?

409 views
Apr 24, 2025
10:54

You write your code in .py files. But as you might have noticed, you sometimes discover other files, with a ".pyc" extension, in the same directory (or, as is common in more recent years, in a __pycache__ subdirectory). What are .pyc files? What are they for, and what can we do with them? Answering this question requires understanding that Python is a compiled language, how that works, and what role .pyc files play in that process. After this video, you'll understand it better, and will be able to answer interview questions on the subject. To download the Jupyter notebooks I used in this course, go to https://AcePythonInterviews.com .

Download

1 formats

Video Formats

360pmp49.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Python interview question #10: What are .pyc files? | NatokHD