← Back to videos

Mock interview with Daniil for a Junior Python developer position

Interview timeline Click any block to jump

Interview breakdown

Interviewer verdict
Needs more practice Level: Beginner (pre-Junior)

The candidate did not pass yet: foundational Python concepts remain fragmented rather than structured, leading to contradictions under follow-up questions (e.g., claiming all strings are constants or calling a singly linked list an array). On the positive side, the interviewer praised his calm demeanor, honesty without bluffing, and habit of reasoning aloud by asking the right guiding questions.

Candidate: Daniil
Target role: Junior Python Developer

Telecom & communications specialist (telephony, video conferencing, servers) · taking extended Python and data analysis courses, no commercial dev experience

Answers accuracy 14 total
54% score
Theory
5/14 correct · 54%
Live coding
0/0 correct · 0%
Practical task
No live coding
Topics covered Click a topic to filter questions

Candidate strengths

  • + Calm, natural communication without panic or attempts to bluff or look up answers
  • + Ability to think aloud and formulate productive guiding questions while reasoning through unfamiliar edge cases
  • + Clear grasp of string immutability and the distinction between rebinding a variable and mutating an object
  • + Solid practical intuition for choosing between for and while loops using real-world examples

Areas to improve

  • → Structure core CS terminology: data types vs data structures, arrays, and Python lists vs singly linked lists
  • → Study the iterator protocol (__iter__ / __next__) and generator functions (yield) along with practical use cases
  • → Separate object immutability at runtime from module-level constant naming conventions (UPPER_CASE)
  • → Clarify the distinction between syntax errors, logical bugs, and runtime exception objects

Questions in this interview

14 / 14
01 ▶ 03:49
What are function arguments and parameters in Python, and how do they differ?
Theory Functions, scopes & closures
?
Candidate's answer

Correctly stated that arguments are passed when calling a function, but mistakenly described parameters as optional default values also passed at call time.

Key takeaway

Parameters are the variable names listed in a function's definition signature, whereas arguments are the actual values passed when calling the function.

Open moment on YouTube ↗
#01
02 ▶ 06:04
What loops exist in Python, and when should you choose 'for' versus 'while'?
Theory Control flow, loops & syntactic sugar
?
Candidate's answer

Named for and while loops, explaining that for iterates over a known collection while while repeats until a dynamic condition is met, illustrated by calculating months to reach a deposit goal.

Key takeaway

Python's for loop traverses any iterable via the iterator protocol, whereas while suits condition-driven loops whose step count is unknown upfront.

Open moment on YouTube ↗
#02
03 ▶ 09:04
What is an iteration and how does it differ from an iterator?
Theory Decorators, iterators, generators & context managers
?
Candidate's answer

After refining his wording, defined an iteration as a single step of a loop, but could not define an iterator and initially equated it with the loop itself.

Key takeaway

Iteration is the process (or single pass) of stepping through items, whereas an iterator is a stateful object implementing __iter__() and __next__().

Open moment on YouTube ↗
#03
04 ▶ 10:55
What is a generator in Python, how is it created, and what practical problem does it solve?
Theory Decorators, iterators, generators & context managers
?
Candidate's answer

Recalled sequential forward-only execution and memory savings, but could not remember yield syntax or a real use case, conflating generators with populating a list.

Key takeaway

Generators (via yield or generator expressions) compute values lazily on demand, enabling streaming over huge datasets in O(1) memory.

Open moment on YouTube ↗
#04
05 ▶ 14:03
How can you concisely populate a list with values without writing an explicit loop?
Theory Control flow, loops & syntactic sugar
?
Candidate's answer

Accurately described a list comprehension in square brackets using for a in range(1, 10), though he loosely misspoke by calling range a generator.

Key takeaway

A list comprehension eagerly builds a list in memory, while range is a reusable lazy sequence object rather than a one-shot generator.

Open moment on YouTube ↗
#05
06 ▶ 15:15
What is a Python list, and what happens in memory when assigning a value to a variable?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Described list as a mutable indexed container holding object references, and correctly explained that variables bind names to dynamically typed objects in memory.

Key takeaway

Variables in Python are references to heap-allocated objects, and list is backed by an over-allocated dynamic array of pointers providing O(1) index access.

Open moment on YouTube ↗
#06
07 ▶ 19:28
How does a data type differ from a data structure, and which one is Python's list?
Theory Data types, numbers & memory
?
Candidate's answer

Flipped back and forth between calling list a data structure and a data type (citing type()), ultimately admitting he could not separate the two concepts.

Key takeaway

A data type defines an object's semantics and operations in the language (list is a built-in type), while a data structure describes memory layout and access mechanics (a dynamic array).

Open moment on YouTube ↗
#07
08 ▶ 24:17
Why are Python strings called immutable if you can reassign a string variable to a new string?
Theory Strings, encodings & formatting
?
Candidate's answer

Clearly distinguished rebinding a variable to a brand-new string object from mutating a character in place via x[1] = ..., which Python forbids.

Key takeaway

Immutability is a property of the object in memory rather than the variable name; because str cannot mutate in place, strings are hashable and safe as dict keys.

Open moment on YouTube ↗
#08
09 ▶ 26:54
What is a constant in Python, how is it named, and does string immutability make every string variable a constant?
Theory Data types, numbers & memory
?
Candidate's answer

Correctly cited module-level UPPER_CASE naming as a readability convention, but fell for the prompt that all strings are constants and got tangled in the resulting contradiction.

Key takeaway

Constancy is a naming convention for bindings that shouldn't be reassigned (UPPER_CASE / typing.Final), whereas immutability is a runtime property of the value object.

Open moment on YouTube ↗
#09
10 ▶ 32:14
What is an array and how does it differ from a Python list or tuple?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Equated an array with tuples and lists as any sequentially accessible container, unable to state the defining characteristics of an array.

Key takeaway

A classic array stores homogeneous fixed-size elements contiguously in memory (e.g., array.array or numpy.ndarray), whereas Python's list stores pointers to arbitrary objects.

Open moment on YouTube ↗
#10
11 ▶ 34:53
What is a singly linked list and when would you choose it over Python's built-in list?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Accurately described nodes pointing only to the next item without O(1) index access, but called a linked list an array and wrongly claimed it saves RAM compared to list.

Key takeaway

Singly linked lists support O(1) head insertion/deletion without shifting elements, but lose to dynamic arrays on random access O(n), CPU cache locality, and per-node memory overhead.

Open moment on YouTube ↗
#11
12 ▶ 43:33
What is an exception in Python, and is it the same thing as a program error?
Theory Exceptions & debugging
?
Candidate's answer

Initially equated errors and exceptions, then reasoned through follow-ups to separate uncatchable parse-time syntax errors from catchable runtime exceptions like ZeroDivisionError.

Key takeaway

An error is any flaw in syntax or logic, whereas an exception is a runtime BaseException object raised to signal abnormal or control-flow events to try/except handlers.

Open moment on YouTube ↗
#12
13 ▶ 50:05
Why doesn't Python raise an exception when there is a logical mistake in a formula (e.g., '+' instead of '*')?
Theory Exceptions & debugging
?
Candidate's answer

Clearly explained that the expression is syntactically and type-wise valid, and the runtime cannot guess business requirements, so logical bugs do not raise exceptions.

Key takeaway

The Python runtime only enforces syntax and type-operation contracts; business-logic correctness must be verified with automated unit tests and domain assertions.

Open moment on YouTube ↗
#13
14 ▶ 54:11
What is None in Python, is it an object, and why is it used in code?
Theory Data types, numbers & memory
?
Candidate's answer

Correctly explained None's role in representing the absence of a value, but hesitated on whether None is an object, calling it a 'specific data type'.

Key takeaway

None is the sole singleton instance of NoneType, returned implicitly by functions without a return value and checked idiomatically via 'is None'.

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

Daniil did not pass the interview, although the conversation was very interesting. Daniil doesn't like working alone, as he believes most collaborative work is more productive and will produce better results. Currently Daniil is studying on courses: "Python Developer Advanced", "Python for Data Analysis", "Advanced SQL for Data Work and Analytics" and "Professional Communication Skills".

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