← Back to videos

Mock interview with Deni for a Junior Python developer position

Interview timeline Click any block to jump

Interview breakdown

Interviewer verdict
Needs more practice Level: Beginner / Pre-Junior (fragmented knowledge without structured fundamentals)

The candidate did not pass yet: despite confident delivery and sensible live reasoning during code experiments, six months of unstructured self-study left fragmented knowledge — missing clear links between variables, objects, classes, and functions and stumbling on basic tuple syntax and unpacking.

Candidate: Danny
Target role: Junior Python Developer

17 y/o · self-studying Python for ~6 months (Telegram bots, SQL, Docker, LeetCode), prior tutoring in Pascal

Answers accuracy 14 total
32% score
Theory
1/7 correct · 36%
Live coding
1/7 correct · 29%
Practical task
Partially solved

Tuple literal syntax (parentheses vs comma) and starred unpacking (a, *b, c)

The candidate recognized () and recalled the trailing comma for (1,) after seeing (1) evaluate to int, but stumbled on (1), 2 and (1, 2). On a, *b, c = 1, 2, 3, 4, 5, he initially missed sequence unpacking and failed to predict ValueError without the star, yet adapted during live runs to grasp starred list capture and correctly predicted a, b, c, *_.

Topics covered Click a topic to filter questions

Candidate strengths

  • + Confident, calm spoken communication without freezing up during live questioning
  • + Familiarity with practical concepts (the DRY principle, tuple immutability, *args positional packing)
  • + Ability to analyze live interpreter output on the fly and refine hypotheses across code experiments

Areas to improve

  • → Complete a structured Python book or course end-to-end to connect isolated concepts into a coherent mental model
  • → Master Python's object model: why everything is an object (including functions and classes) while variables are name bindings
  • → Practice core syntax drills (tuple literals, trailing comma in (1,), starred unpacking) before spending time on LeetCode
  • → Sharpen terminology: distinguish collections, lists vs arrays, and built-in classes/functions, methods, and syntax operators

Questions in this interview

14 / 14
01 ▶ 03:16
What are collections in Python and which data structures belong to them?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Could not recall what a collection means in Python, and even after naming tuples and lists couldn't confirm whether they count as collections.

Key takeaway

Collections are container types that group elements (list, tuple, set, frozenset, dict, str, bytes) and support iteration, len(), and membership testing via 'in'.

Open moment on YouTube ↗
#01
02 ▶ 04:58
What is a tuple, how does it differ from a list, and does Python have arrays?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Correctly explained that tuples are immutable heterogeneous sequences whereas lists mutate in place, but equated Python's list directly with a traditional array.

Key takeaway

Python's list is a dynamically resized array of object references rather than a fixed-length homogeneous memory buffer (provided by array.array or NumPy).

Open moment on YouTube ↗
#02
03 ▶ 07:35
What is a constant and does Python have true constants?
Theory Data types, numbers & memory
?
Candidate's answer

Defined a constant as a permanent value and doubted Python enforces built-in constants, while conflating tuple immutability with non-reassignable variables.

Key takeaway

Python has no runtime const keyword to freeze variable bindings; constants use UPPER_SNAKE_CASE by convention (and typing.Final for type checkers), whereas immutability applies to objects.

Open moment on YouTube ↗
#03
04 ▶ 09:52
Is everything in Python an object, and how do variables, objects, values, and data types differ?
Theory Data types, numbers & memory
?
Candidate's answer

Started with 'everything in Python is an object', then called variables themselves objects separate from values, and backtracked to claim functions and methods are not objects.

Key takeaway

Everything at runtime in Python — numbers, containers, functions, classes, modules — is an object in memory with an id, type, and value, while a variable is just a name bound to an object.

Open moment on YouTube ↗
#04
05 ▶ 11:19
Where do objects come from in Python, and how do you create an object with custom properties?
Theory OOP, classes & dunder methods
?
Candidate's answer

Equated object creation with writing a variable name and '=', only connecting custom objects to classes after heavy prompting and getting tangled in how classes are objects too.

Key takeaway

Every object is instantiated from a class (either via literal syntax or calling the class), and classes themselves are objects instantiated by the metaclass type.

Open moment on YouTube ↗
#05
06 ▶ 18:09
What is a function in Python and why are functions needed?
Theory Functions, scopes & closures
?
Candidate's answer

Clearly explained that functions encapsulate reusable logic, uphold the DRY principle, accept varying arguments, and centralize bug fixes in one place.

Key takeaway

Functions decompose logic into named, isolated scopes with well-defined inputs and outputs, improving readability, reuse, and testability.

Open moment on YouTube ↗
#06
07 ▶ 21:09
Why use classes over procedural code, what is a procedure, and can the same problem be solved with functions or classes?
Theory OOP, classes & dunder methods
?
Candidate's answer

Recalled Pascal procedures as subroutines without a return value and agreed tasks can be solved either way, but mischaracterized procedural programming as flat copy-pasted code without functions.

Key takeaway

Procedural programming structures code into functions operating on separate data, while OOP bundles state and behavior together; in Python, a function without an explicit return still returns None.

Open moment on YouTube ↗
#07
08 ▶ 26:59
What does a = () create, how do you inspect a value's type in Python, and what kind of callable is type()?
Live coding Data types, numbers & memory
?
Candidate's answer

Correctly identified () as an empty tuple and suggested type(a), but first called type a method and then a 'procedure that returns a value'.

Key takeaway

Empty parentheses () construct the singleton empty tuple, and built-in type is Python's root metaclass whose one-argument call type(obj) returns obj's class.

Open moment on YouTube ↗
#08
09 ▶ 29:52
What is the type of a in a = (1), and how do you write a single-element tuple?
Live coding Collections, lists, dicts & hash tables
?
Candidate's answer

Briefly recalled hearing about a trailing comma yet bet on tuple for a = (1); once <class 'int'> printed, immediately fixed it to a = (1,).

Key takeaway

Parentheses around a single expression (1) only group arithmetic; a trailing comma — (1,) or 1, — is what actually constructs a 1-element tuple.

Open moment on YouTube ↗
#09
10 ▶ 31:11
What type is produced by a = (1), 2 and by a = (1, 2) without a trailing comma?
Live coding Collections, lists, dicts & hash tables
?
Candidate's answer

Predicted int (or an error) for a = (1), 2 and guessed list for a = (1, 2) without a trailing comma, summarizing how commas create tuples only after seeing both outputs.

Key takeaway

For non-empty tuples, the comma is the constructor rather than parentheses: (1), 2, 1, 2, and (1, 2) all evaluate to the tuple (1, 2), whereas lists require square brackets.

Open moment on YouTube ↗
#10
11 ▶ 35:05
What values and types are bound to a, b, and c in a, *b, c = 1, 2, 3, 4, 5?
Live coding Control flow, loops & syntactic sugar
?
Candidate's answer

Initially expected the whole tuple in a, then guessed c == 3 and a tuple in b, grasping a == 1, b == [2, 3, 4] (list), and c == 5 only after inspecting each variable.

Key takeaway

Extended iterable unpacking (PEP 3132) binds fixed targets at the ends (a = 1, c = 5) and collects all remaining middle items into a list in *b ([2, 3, 4]).

Open moment on YouTube ↗
#11
12 ▶ 39:28
Why does starred unpacking bind b to a list while *args in a function signature collects a tuple, and what is '*'?
Live coding Control flow, loops & syntactic sugar
?
Candidate's answer

Mistakenly called '*' a function and could not explain why it produces a tuple in def f(*args) versus a list in starred assignment.

Key takeaway

'*' is a syntax unpacking operator, not a function: PEP 3132 unpacks arbitrary iterables/generators into a mutable list for convenient slicing/mutation, whereas *args freezes call arguments as a tuple.

Open moment on YouTube ↗
#12
13 ▶ 44:37
What happens when executing a, b, c = 1, 2, 3, 4, 5 without a starred target?
Live coding Control flow, loops & syntactic sugar
?
Candidate's answer

Guessed either the extra numbers would be silently dropped or each variable would get the full tuple; after seeing ValueError: too many values to unpack, accurately stated the exact-length rule.

Key takeaway

Without a starred target, the number of assignment targets on the left must exactly match the iterable's length on the right, or Python raises ValueError.

Open moment on YouTube ↗
#13
14 ▶ 47:12
How does Python handle a, b, c, * = ..., a, b, c, *_ = ..., and a, b, c, _* = ...?
Live coding Control flow, loops & syntactic sugar
?
Candidate's answer

Correctly predicted SyntaxError for both bare '*' and '_*', and accurately deduced that in a, b, c, *_ the '_' variable receives [4, 5] while c equals 3.

Key takeaway

In starred assignment, '*' must immediately precede a valid target identifier; '*_' is the standard Python idiom for discarding trailing unpacked elements.

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

In this episode we meet with candidate Deni (17 years old, has been learning Python for about six months) and discuss basic topics: data types, collections, lists and tuples, differences between mutable and immutable structures, as well as concepts of objects, classes and functions. In practice at the screen we check types using type(), analyze the nuances of tuples with one element and a comma, and then look at interesting tuple unpacking. At the end — detailed feedback: what went well, where there are gaps, and what's better to improve to grow faster.

The video will be useful for those preparing for a Junior/intern interview and who want to understand what questions are really asked and where people usually "fall apart".

Timestamps

00:00 Greeting and interview plan
00:31 Introduction of participants
03:15 Theoretical questions
26:56 Working with code
50:16 Feedback exchange

Hashtags

#python #juniorpython #interview #it #programming #pythondeveloper #oop #interview