← Back to videos

Mock interview with Mikhail for a Junior Python developer position

Interview timeline Click any block to jump

Interview breakdown

Interviewer verdict
Needs more practice Level: Intern / Pre-Junior (needs foundational systematization)

The candidate did not pass yet: while familiar with textbook terms and quick to diagnose list index shifting during in-place removal, most answers relied on fragmented memorized definitions without grasping why core tools exist (classes & OOP, compilation vs interpretation, lambda functions, SQL vs NoSQL, and DB normalization).

Candidate: Mikhail
Target role: Junior Python Developer

Part-time university student · graduated from Yandex Practicum two months prior, completed 4 small freelance gigs (Python / Django), no team production experience yet

Answers accuracy 13 total
38% score
Theory
1/11 correct · 41%
Live coding
0/2 correct · 25%
Practical task
Partially solved

Removing elements under 5 from a list while iterating over it in a for-loop

Before running the code, the candidate overlooked the bug, but immediately after seeing the output he accurately explained how in-place list.remove() shifts indices during a for-loop and proposed iterating over a copy. When asked for cleaner Pythonic improvements, however, he misstated list.pop() error behavior and missed list comprehensions.

Topics covered Click a topic to filter questions

Candidate strengths

  • + Broad exposure to entry-level backend topics and honesty about stopping rather than digging deeper when unsure
  • + Clear diagnosis of why mutating a list with .remove() inside a for-loop skips adjacent matching elements
  • + Accurate distinction between a namespace (name-to-value mapping) and variable scope
  • + Proactive interviewing mindset early in his job search

Areas to improve

  • → Systematize core OOP concepts: classes vs instances and how objects encapsulate state alongside behavior
  • → Clarify native compilation (platform-specific standalone binaries) vs runtime interpretation
  • → Review database fundamentals: relational vs document/key-value/columnar NoSQL stores and schema normalization
  • → Brush up on Python idioms: list comprehensions for filtering, lambda callbacks for higher-order functions, and list.remove() vs list.pop()

Questions in this interview

13 / 13
01 ▶ 03:00
How do compilation and interpretation differ, what is an interpreter, and does a compiled binary need a mediator on the target machine?
Theory Python internals, bytecode & runtime
?
Candidate's answer

Explained ahead-of-time compilation vs running via an installed interpreter executable, but mistakenly agreed that a compiled native executable still requires a mediator on the target machine.

Key takeaway

Native compilers produce architecture-specific machine binaries that run directly on the target OS, whereas interpreted languages require a compatible runtime interpreter on every host.

Open moment on YouTube ↗
#01
02 ▶ 10:06
Do compiled implementations or compilers for Python exist?
Theory Python internals, bytecode & runtime
?
Candidate's answer

Confirmed that tools exist to compile Python ahead of time, referring to them vaguely as niche libraries without naming specific runtimes.

Key takeaway

Beyond standard CPython (bytecode VM), the ecosystem includes PyPy (JIT compilation) and ahead-of-time compilers like Cython, Nuitka, and mypyc.

Open moment on YouTube ↗
#02
03 ▶ 11:06
In plain terms, what is a function and why use functions within a single-file program?
Theory Functions, scopes & closures
?
Candidate's answer

Gave a timing-helper example and summed up a function as a named block of code that eliminates repeating identical logic.

Key takeaway

Functions decompose programs into named, reusable units with explicit inputs, return values, and isolated local state.

Open moment on YouTube ↗
#03
04 ▶ 16:45
What are a class and a class instance (object), and what problem do classes solve beyond plain functions?
Theory OOP, classes & dunder methods
?
Candidate's answer

Tried illustrating stateful shopping-cart operations, but confused a class with an 'interface', defined an object as 'a variable', and described an instance as 'parameters passed in inheritance'.

Key takeaway

A class is a blueprint while an instance is a concrete in-memory entity (like one user's cart) bundling its own state with methods operating on that state.

Open moment on YouTube ↗
#04
05 ▶ 26:22
What is OOP and what core principles is it built on?
Theory OOP, classes & dunder methods
?
Candidate's answer

Named inheritance, underscore encapsulation, and polymorphism, but framed OOP loosely as 'community style recommendations for classes' without explaining why those principles matter.

Key takeaway

OOP is a design paradigm: encapsulation protects object invariants, inheritance shares common behavior, and polymorphism lets different types be used interchangeably behind a shared contract.

Open moment on YouTube ↗
#05
06 ▶ 29:24
Why does Python isolate local and global scopes, and how does a scope differ from a namespace?
Theory Functions, scopes & closures
?
Candidate's answer

Correctly showed how mutating a shared global breaks subsequent function calls and distinguished a namespace from a scope, but missed enclosing/built-in LEGB scopes and invented a 'project scope' in __init__.py.

Key takeaway

Local scope isolation prevents accidental state corruption across functions; Python resolves names strictly across four LEGB scopes: Local, Enclosing, Global (module), and Built-in.

Open moment on YouTube ↗
#06
07 ▶ 35:34
What happens when a for-loop removes numbers under 5 from the same list via .remove(), and how do you fix it?
Live coding Collections, lists, dicts & hash tables
?
Candidate's answer

Missed the trap before running the snippet, then immediately explained how in-place .remove() shifts elements left while the list iterator advances its index, proposing iteration over a copy.

Key takeaway

Never mutate a list's length while iterating over it directly; build a filtered list with a comprehension '[x for x in nums if x >= 5]' or iterate over a shallow copy 'nums[:]'.

Open moment on YouTube ↗
#07
08 ▶ 37:38
How do list.remove() and list.pop() differ, and what is the most Pythonic way to filter a list?
Live coding Collections, lists, dicts & hash tables
?
Candidate's answer

Suggested switching from remove() to pop(), mistakenly claiming pop() never raises an exception on missing items, and missed list comprehensions.

Key takeaway

list.remove(val) deletes by value (raising ValueError if absent) while list.pop(idx) deletes by index (raising IndexError if out of range); filtering belongs in a list comprehension.

Open moment on YouTube ↗
#08
09 ▶ 38:44
What are lambda functions in Python, and why use them instead of a regular 'def' function?
Theory Functions, scopes & closures
?
Candidate's answer

Described lambda as a single-line shorthand and suggested assigning it to a variable to shorten code, missing its actual role as an inline anonymous callback.

Key takeaway

Assigning a lambda to a name violates PEP 8 (use 'def' instead); lambdas exist for concise, throwaway inline callbacks passed to higher-order functions like sorted(..., key=lambda x: ...).

Open moment on YouTube ↗
#09
10 ▶ 40:52
How do relational and non-relational (NoSQL) databases differ, and is SQL used across NoSQL databases too?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Named PostgreSQL and SQLite as table-based relational DBs, but reduced all NoSQL databases to volatile in-memory storage and mistakenly claimed SQL queries NoSQL databases as well.

Key takeaway

Relational DBs enforce structured table schemas, foreign keys, and SQL, whereas NoSQL stores (document, key-value, wide-column, graph) persist data on disk or in RAM using non-relational data models and native query APIs.

Open moment on YouTube ↗
#10
11 ▶ 44:00
What is database normalization in relational databases?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Confused relational normalization with column data-type enforcement and could not provide an example.

Key takeaway

Database normalization decomposes tables via foreign keys (1NF, 2NF, 3NF) to eliminate data redundancy and prevent insert, update, and delete anomalies.

Open moment on YouTube ↗
#11
12 ▶ 45:45
What is the difference between Git and GitHub, and can Git push directly to alternatives like GitLab?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Distinguished local Git from remote GitHub hosting, initially tying Git exclusively to GitHub and mentioning CI/CD out of context before correcting himself about GitLab remotes.

Key takeaway

Git is a decentralized version-control system that works offline or with any remote Git server, while GitHub and GitLab are collaboration platforms built around Git.

Open moment on YouTube ↗
#12
13 ▶ 48:01
Why use Git in a team instead of storing v1, v2 folders on a shared cloud drive?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Highlighted commit-level diffs and Pull Request code reviews, while missing parallel branching, automated conflict merging, and atomic rollbacks.

Key takeaway

Unlike shared-folder copies, Git enables parallel feature branches, line-level multi-author merging, conflict resolution, blame history, and instant rollbacks.

Open moment on YouTube ↗
#13
Original video description & timecodes

Mikhail is only at the beginning of his journey in programming, but has already passed more than one interview (at least six!).

During this interview we covered key topics that every beginning Python developer faces. I tried to ask not just standard questions, but those that reveal real knowledge.

Subscribe to stay updated on new interviews on the channel!

On this channel I conduct mock interviews for the role of Python developer for anyone interested. This is a great opportunity to prepare for a real interview, improve your skills, get useful tips and honest feedback. I do all of this absolutely for free. However, maintaining quality requires significant time and resources. If you like my content and want to support the channel, I'll be grateful for any financial support.

https://www.tbank.ru/cf/4PYyn4udS41