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

preview_player
Показать описание
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.

Рекомендации по теме
Комментарии
Автор

🤔 Is Python interpreted or compiled? It's a bit of both, kind of like Java and .NET.

👇 Still have questions about .pyc files? Drop them in the comments — I read them all.

📝 Want the course notebooks and practice materials?

ReuvenLerner