← Back to videos

Mock interview with Vladimir for a Junior Python developer position

Interview timeline Click any block to jump

Interview breakdown

Interviewer verdict
Passed with caveats Level: Entry Junior (with gaps in web/API theory)

Conditional pass ('more yes than no, though with reservations'): the candidate showed a solid foundation in Python memory management, functions, Git, and Big-O complexity alongside sound common-sense reasoning, but had noticeable gaps in web/DB theory (REST, normalization, introspection) and was easily rattled by pushback questions.

Candidate: Vladimir
Target role: Junior Python Developer

Power engineer with 10 years of industry experience · studying Python for over a year (console games, Telegram bot, Yandex Practicum graduate), onboarding onto his first internship

Answers accuracy 14 total
79% score
Theory
7/12 correct · 79%
Live coding
1/2 correct · 75%
Practical task
Partially solved

1-tuple isinstance() check and removing list elements while iterating

The candidate solved the value = (1_000_000,) / isinstance(value, int) snippet immediately, explaining why a tuple returns False. On numbers.remove(i) inside a for-loop, he sensed the bug and traced element 2 shifting to index 0 with potential skipped items, but doubted himself and stopped short of a definitive conclusion.

Topics covered Click a topic to filter questions

Candidate strengths

  • + Strong grasp of Python's object memory header and reference-counting garbage collection
  • + Grounded common-sense reasoning and discipline to state 'I don't know' immediately without bluffing
  • + Solid command of functions, local/global scopes (and why global is harmful), Git/GitHub workflows, and Big-O classes
  • + Practical understanding of dependency manifests and why editing framework source files locally breaks team workflows

Areas to improve

  • → Build deeper conviction by testing edge cases firsthand and asking 'why this rule exists and what breaks otherwise'
  • → Fill backend theory gaps: REST architectural constraints, HTTP semantics, relational DB normalization, and NoSQL basics
  • → Solidify how list iterators behave when elements are removed in-place during a for-loop
  • → Learn Python's runtime introspection terminology and built-in tools (isinstance, type, dir, getattr)

Questions in this interview

14 / 14
01 ▶ 04:31
How does garbage collection work in Python, what metadata does every object store, and should developers care about memory?
Theory Python internals, bytecode & runtime
?
Candidate's answer

Accurately named an object's value, type, and reference count, explained reclamation when references hit zero, and noted manual allocation isn't needed though memory footprint still matters.

Key takeaway

CPython combines immediate reference counting with a generational cycle detector (the gc module) that reclaims reference cycles.

Open moment on YouTube ↗
#01
02 ▶ 08:32
What is a lambda function, and when is it preferable to a standard def function?
Theory Functions, scopes & closures
?
Candidate's answer

Noted that a lambda is a single-expression function (bindable to a name in principle, though meant for one-off inline use) where a def statement isn't syntactically allowed, such as inside map() or filter().

Key takeaway

Because lambda is an expression rather than a statement like def, it can be written inline inside function calls and data-structure literals.

Open moment on YouTube ↗
#02
03 ▶ 10:37
What is a higher-order function (like map()), and does a custom def become higher-order if it accepts or returns a function?
Theory Functions, scopes & closures
?
Candidate's answer

Gave the exact definition of a higher-order function and explained map() accurately, but lost confidence when asked to confirm the same rule applies to user-defined functions.

Key takeaway

Any function — built-in (map, sorted) or user-defined (such as a decorator) — that takes a callable argument or returns a function is a higher-order function.

Open moment on YouTube ↗
#03
04 ▶ 13:20
What is introspection in Python, and what is the difference between function parameters and arguments?
Theory OOP, classes & dunder methods
?
Candidate's answer

Honestly stated he hadn't encountered the term 'introspection' instead of guessing, then cleanly distinguished declaration-time parameters from call-time arguments.

Key takeaway

Introspection is Python's ability to examine object types, attributes, and call signatures at runtime via isinstance(), type(), dir(), hasattr(), and inspect.

Open moment on YouTube ↗
#04
05 ▶ 15:02
Why are function variables isolated from module code, and why is mutating globals via global discouraged?
Theory Functions, scopes & closures
?
Candidate's answer

Cited Mark Lutz: local namespaces prevent name collisions across reusable functions, while mutating module state via global creates hidden side effects that make debugging painful.

Key takeaway

Functions that communicate strictly via arguments and return values without global mutation are predictable, easier to debug, and trivial to unit-test.

Open moment on YouTube ↗
#05
06 ▶ 19:54
How does a namespace differ from a scope in Python?
Theory Functions, scopes & closures
?
Candidate's answer

Correctly described module/function variable containers and the lookup order from local to global to built-in, but admitted struggling to contrast the two terms crisply in words.

Key takeaway

A namespace is a concrete dictionary mapping names to objects, whereas a scope is the region of code defining the LEGB order in which namespaces are searched.

Open moment on YouTube ↗
#06
07 ▶ 23:08
What does print(isinstance(value, int)) output for value = (1_000_000,)?
Live coding OOP, classes & dunder methods
?
Candidate's answer

Immediately identified value as a tuple, noted isinstance checks membership in class int, and confidently answered False.

Key takeaway

A trailing comma constructs a 1-element tuple (1_000_000,), so isinstance(value, int) evaluates to False.

Open moment on YouTube ↗
#07
08 ▶ 24:31
Will filtering values under 5 via for i in numbers: if i < 5: numbers.remove(i) work as intended?
Live coding Collections, lists, dicts & hash tables
?
Candidate's answer

Understood the filtering intent and traced element 2 shifting to index 0 with likely skipped items after deleting 1, but doubted his intuition about the iterator and hesitated to commit.

Key takeaway

Because list_iterator steps by numeric index (0, 1, 2...), deleting an item shifts subsequent items left and silently skips the next element without raising an exception.

Open moment on YouTube ↗
#08
09 ▶ 29:13
What is SQL, how do relational and NoSQL databases differ, and what is database normalization?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Correctly identified SQL as the query language for relational databases with linked tables (citing SQLite and PostgreSQL), while honestly declining to guess on NoSQL internals and normalization.

Key takeaway

Database normalization (1NF–3NF) structures relational tables to eliminate redundant data duplication and update/delete anomalies via foreign-key relationships.

Open moment on YouTube ↗
#09
10 ▶ 31:40
What is the HTTP protocol, and how does HTTPS differ from it?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Described HTTP as the network request-response protocol between client and server, and HTTPS as its encrypted counterpart protecting data in transit from interception.

Key takeaway

HTTPS layers HTTP over TLS to guarantee traffic encryption, server certificate authentication, and message integrity.

Open moment on YouTube ↗
#10
11 ▶ 34:18
What do REST, API, and JSON mean in client-server communication?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Clearly explained API as a programmatic interface and JSON as a key-value data format, but conflated the REST architectural style with generic JSON-over-HTTP messaging.

Key takeaway

REST is an architectural style built around resource URLs, standard HTTP verbs (GET, POST, PUT, DELETE), stateless requests, and semantic HTTP status codes.

Open moment on YouTube ↗
#11
12 ▶ 40:02
What is a web framework like Django, and why shouldn't you edit an installed framework's source code locally?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Described Django as an application skeleton with built-in features like auth, and nailed why local edits break builds: third-party packages aren't committed to Git but installed cleanly from versioned dependency specs.

Key takeaway

Installed packages in site-packages are recreated from dependency lockfiles across environments; customize framework behavior via subclassing, middleware, or hooks instead.

Open moment on YouTube ↗
#12
13 ▶ 43:27
How do Git and GitHub differ, and why use Git instead of saving numbered folder copies?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Cleanly separated local Git ('save points' and quick rollbacks) from remote GitHub for concurrent team workflows and merge-conflict resolution, citing his own pre-Git 'SuperFinal' folder chaos.

Key takeaway

Beyond commit checkpoints and branch merging, Git provides line-by-line diffs, git blame authorship history, and seamless CI/CD integration.

Open moment on YouTube ↗
#13
14 ▶ 51:08
How do you choose among competing algorithms for a task, and what does Big-O notation measure?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Explained balancing time vs memory complexity under system constraints and accurately defined Big-O as operation growth relative to input size n, ordering classes from O(1) and O(log n) to O(n²) and O(n!).

Key takeaway

Algorithm choice depends on real system constraints (latency SLAs, memory limits, input scale n), with Big-O characterizing worst-case asymptotic growth.

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

Vladimir became interested in programming while still in school. But didn't choose this field as his main focus. More consciously got interested in development in early 2023. Because of living far from family and not wanting to lose touch, I wrote a couple of console games on Python for my children (from M. Dowson's book "Programming on Python"). Then there was a joking Telegram bot for his wife. This is how the idea came to pursue programming more seriously.

And now Vladimir is trying his hand at a mock interview. The conversation was interesting and useful. And the overall impression of the interview - positive.

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