Interview Q&A · Python · 50 questions in this topic

Rapid-Fire Revision — Python Interview Q&A

All Python topics

The handbook's 50 rapid-fire question/answer pairs — one-line answers spanning the whole guide, for a final pass the night before an interview. Part of Rapid-Fire Revision · 375 questions in the Python bank.

Is Python interpreted or compiled?

Answer

Both — source compiles to bytecode, which the Python Virtual Machine then interprets.

Is Python strongly or weakly typed?

Answer

Strongly typed — it won't silently coerce incompatible types (e.g., "2" + 2 raises TypeError).

is vs ==?

Answer

is compares identity (same object in memory); == compares value.

Recommended resourcesAffiliate links · may earn us a commission

Classic DSA interview booksThe reference books interviewers themselves learned from — great next to the visualizers.See the books Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses Cloud hosting for side projectsShip the portfolio project that gets you hired — free credits for new accounts.Claim credits