Interview prep

Python Developer interview questions

Python interviews are full of questions with a textbook answer and a real answer. Interviewers are listening for the second one.

The good ones test whether you have maintained Python that other people wrote, and whether you know where the language will surprise you.

Every question below is one that gets asked. What we have added is the part that usually goes unsaid: what a strong answer actually demonstrates. Career1 scores interviews for a living, so this is the difference we see between an answer that lands and one that was rehearsed.

Language behaviour that bites

  1. What happens if you use a list as a default argument?

    What a strong answer shows: Textbook knowledge is table stakes. The useful signal is whether you have been bitten by it in a real codebase.

  2. Explain the difference between a shallow and a deep copy, with a case where it mattered.

    What a strong answer shows: Whether the knowledge is attached to an experience or was read the night before.

  3. When does the GIL actually matter to you?

    What a strong answer shows: Precision. Strong answers separate CPU bound from I/O bound work and name what they did about it.

  4. How do generators help with memory, and when do they hurt?

    What a strong answer shows: That you know they are single pass, and have hit the bug where something is consumed twice.

Structure and testing

  1. How do you organise a Python project that has outgrown one file?

    What a strong answer shows: Opinions formed by maintenance: packages, dependency direction, and keeping the import graph acyclic.

  2. What do you mock in tests, and what do you refuse to mock?

    What a strong answer shows: Judgement. Over-mocked suites pass while the system is broken, and candidates who have lived through that say so.

  3. How do you use type hints in a codebase that has none?

    What a strong answer shows: Pragmatism about incremental adoption rather than an all or nothing rewrite.

Performance

  1. A Python service is slow. How do you find out why?

    What a strong answer shows: That you profile before optimising, and know the answer is usually I/O or an accidental quadratic, not the language.

  2. When would you reach for asyncio, and when would you not?

    What a strong answer shows: Whether you can name the cost: one blocking call in an async path stalls everything.

Now practise it out loud

Reading questions is the easy half. Career1's AI interviewer asks them by voice, follows up when an answer is thin, and gives you a scored report on what you actually said. It takes about eight minutes and costs nothing.

Pass it and your profile becomes visible to companies hiring for python developer roles, with the interview attached as evidence.

Practise this interview free

Questions people ask

What level of Python do interviews usually test?

Most interviews stay in day to day territory: data structures, error handling, testing and debugging. Questions about metaclasses and descriptors are more common in blog posts than in interviews, and often signal a team that is testing trivia rather than the job.

Should I prepare LeetCode style problems for a Python role?

It depends entirely on the company. Product teams tend to ask about code you have written; larger engineering organisations are more likely to run algorithm rounds. Read the job description and ask the recruiter what the process is, which is a reasonable question.

How do I show Python depth without a public portfolio?

Talk about a bug that took you a long time to find. Depth shows up in debugging stories far more reliably than in a list of libraries.

Other roles

Hiring instead of interviewing? See how Career1 vets applicants for you.