← Back to videos

Mock interview with Nikita for the role of Junior Python Developer

Interview timeline Click any block to jump

Interview breakdown

Interviewer verdict
Passed interview Level: Junior

The candidate cleanly passed the Junior Python Developer bar: demonstrated solid fundamentals across functions and OOP, stood his ground confidently against misleading prompts, and quickly self-corrected to solve the keyword-only '*' and *args signature tasks.

Candidate: Nikita
Target role: Junior Python Developer

20 y/o · coding since 8th grade (Pascal, CS exam), self-studying Python via courses and building personal pet projects

Answers accuracy 12 total
79% score
Theory
5/8 correct · 81%
Live coding
2/4 correct · 75%
Practical task
Solved

Asterisk in function signatures: bare '*' keyword-only separator vs *args packing

On the first snippet def f(a, *, b, c), the candidate briefly confused bare '*' with iterable unpacking, then immediately recognized the keyword-only separator from TypeError and fixed the call; he nailed def f(a, *args, c) right away and clearly contrasted '*' syntax overloading with polymorphism.

Topics covered Click a topic to filter questions

Candidate strengths

  • + Ability to defend accurate technical reasoning instead of caving to devil's-advocate prompts
  • + Fast self-correction on code tasks: read TypeError output and immediately explained keyword-only rules after '*' and '*args'
  • + Solid grasp of OOP method kinds (instance, @classmethod, @staticmethod, @abstractmethod) and Python lambda constraints
  • + Composed, confident communication grounded in real coding practice despite it being his first interview

Areas to improve

  • → Distinguish parameters (in function definitions) from arguments (passed at call sites) and review /, *, *args, **kwargs
  • → Clarify the top of Python's object hierarchy: the relationship between root base class 'object' and metaclass 'type'
  • → Add data-structures and algorithms practice if targeting companies with algorithmic coding rounds

Questions in this interview

12 / 12
01 ▶ 03:16
Where did the name of the Python programming language come from?
Theory Python internals, bytecode & runtime
?
Candidate's answer

Explained that creator Guido van Rossum named Python after the British comedy troupe Monty Python rather than the snake.

Key takeaway

Python is named after 'Monty Python's Flying Circus', which also inspired the traditional 'spam' and 'eggs' metasyntactic variables in Python docs.

Open moment on YouTube ↗
#01
02 ▶ 04:07
What is the difference between parameters and arguments, and what parameter kinds exist in Python?
Theory Functions, scopes & closures
?
Candidate's answer

Described positional and keyword passing accurately, but called parameters and arguments exact synonyms and missed *args, **kwargs, positional-only (/), and keyword-only (*).

Key takeaway

Parameters are variable names declared in a function signature (positional-only '/', regular, *args, keyword-only '*', **kwargs); arguments are the actual values passed at a call site.

Open moment on YouTube ↗
#02
03 ▶ 06:32
What is a lambda function in Python, what are its technical limitations vs def, and when is it useful?
Theory Functions, scopes & closures
?
Candidate's answer

Defined lambda as an anonymous single-expression function handy for short inline callbacks, accurately highlighting that Python lambdas cannot contain multiple statements or standard assignments.

Key takeaway

A Python lambda produces a normal function object but its body is restricted to a single expression; use it for short inline callbacks (e.g., key=), and use def when binding a name.

Open moment on YouTube ↗
#03
04 ▶ 14:16
What is the functional programming paradigm, and does merely using functions mean writing FP?
Theory Functions, scopes & closures
?
Candidate's answer

Defined paradigms well, separated procedural use of functions from true FP, and cited pure functions, though he overstated that FP requires abandoning objects completely.

Key takeaway

Functional programming emphasizes pure functions, immutable data, and higher-order functions — techniques commonly blended with OOP in idiomatic Python.

Open moment on YouTube ↗
#04
05 ▶ 17:06
What is an object in Python, are functions and classes objects too, and what creates classes?
Theory OOP, classes & dunder methods
?
Candidate's answer

Correctly stated that both functions and classes are objects and classes are instances of the 'type' metaclass, before getting tangled on the circular link between root 'object' and 'type'.

Key takeaway

Everything in Python is a first-class object: classes are instances of metaclass 'type' (including type itself and object), while every class inherits from 'object'.

Open moment on YouTube ↗
#05
06 ▶ 19:31
How does a method differ from a function, and how can you check whether an object is callable?
Theory OOP, classes & dunder methods
?
Candidate's answer

Explained that a method is bound to a class/instance while a function is standalone, and suggested checking callability via isinstance(obj, typing.Callable).

Key takeaway

Accessing a function on an instance produces a bound method that automatically passes 'self'; check callability directly with built-in callable(obj).

Open moment on YouTube ↗
#06
07 ▶ 23:41
What kinds of methods exist in Python classes: how do instance methods, @classmethod, and @staticmethod differ?
Theory OOP, classes & dunder methods
?
Candidate's answer

Cleanly contrasted all three: instance methods receive 'self', @classmethod receives 'cls' (callable on class or instance), and @staticmethod receives neither, acting as a namespaced function.

Key takeaway

Instance methods operate on 'self', @classmethod works with 'cls' (ideal for alternative constructors), and @staticmethod namespaces helper functions that need neither.

Open moment on YouTube ↗
#07
08 ▶ 26:51
What practical problem do abstract base classes and @abstractmethod solve in real codebases?
Theory OOP, classes & dunder methods
?
Candidate's answer

Illustrated with UI widgets sharing a required update() method: @abstractmethod enforces a polymorphic contract and raises an exception at instantiation time if a subclass omits the method.

Key takeaway

abc.ABC + @abstractmethod catches missing interface methods early at instantiation time (TypeError) rather than failing late in production.

Open moment on YouTube ↗
#08
09 ▶ 33:01
What happens when calling f(1, 2, 3, 4) on def f(a, *, b, c): print(a, b, c), and how do you fix the call?
Live coding Functions, scopes & closures
?
Candidate's answer

Initially confused bare '*' with tuple unpacking and predicted '1 3 4', then immediately recognized the keyword-only separator from TypeError (also recalling '/') and fixed the call to f(1, b=3, c=4).

Key takeaway

A bare '*' in a function signature marks the end of positional parameters: every parameter after '*' must be passed by keyword (PEP 3102).

Open moment on YouTube ↗
#09
10 ▶ 40:05
Will f(1, 2, 3, 4, 5) work for def f(a, *args, c): print(a, args, c), and how should it be called?
Live coding Functions, scopes & closures
?
Candidate's answer

Immediately predicted TypeError because *args consumes all remaining positional arguments, and fixed the call to f(1, 2, 3, 4, c=5).

Key takeaway

Any parameter declared after *args is automatically keyword-only; omitting its name at the call site raises TypeError.

Open moment on YouTube ↗
#10
11 ▶ 43:55
What is the exact difference between bare '*' and '*args' in a function signature?
Live coding Functions, scopes & closures
?
Candidate's answer

Briefly misspoke that bare '*' builds an unnamed tuple, then self-corrected when challenged: bare '*' rejects extra positional arguments, whereas '*args' packs them into a tuple.

Key takeaway

def f(a, *, b) accepts at most one positional argument, while def f(a, *args, b) accepts arbitrarily many positional arguments and packs extras into the tuple 'args'.

Open moment on YouTube ↗
#11
12 ▶ 46:35
What different roles does the '*' symbol play in Python, and is that polymorphism?
Live coding Control flow, loops & syntactic sugar
?
Candidate's answer

Listed multiplication, iterable packing/unpacking, and signature rules, and firmly pushed back: polymorphism is 2 * 3 vs 'a' * 3 dispatching via dunder methods, whereas unary/signature '*' is distinct parser syntax.

Key takeaway

Runtime operator polymorphism (a * b dispatching to __mul__) is distinct from the parser reusing the '*' token for separate syntactic constructs (unpacking, varargs, keyword-only separator).

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

This is the candidate’s first interview in this format, and they answer questions on Python, functions, parameters and arguments, lambda functions, the functional approach, OOP, class methods, static and abstract methods, as well as analysing several code examples featuring an asterisk in the function signature.

During the interview, we do not simply test knowledge of terminology, but seek to understand how the candidate thinks, how they respond to follow-up questions, whether they can defend their position, whether they notice contradictions in their own answers, and whether they can adjust their reasoning as the conversation progresses. This format is as close as possible to a real technical interview and helps us assess not only the level of knowledge but also the depth of understanding of the language.

At the end, the candidate receives detailed feedback: what went well, where there are gaps, how confident they appeared, how they performed at a junior level, and what they should focus on in their further preparation. The video will be useful for anyone preparing for a Python developer interview, wanting to better understand what questions might come up, and wishing to practise their own thinking through a real-life analysis.

If you’re preparing for Python interviews, watch closely, pause the video before the candidate’s answers, and try answering yourself — this is one of the most effective ways to prepare.

Timecodes:

00:00 Start
00:11 Mock interview for a Junior Python Developer
01:00 The candidate talks about themselves
01:39 Interview rules and format
03:16 Where the name Python comes from
04:07 Parameters, arguments and types of parameters
06:32 Lambda functions: what they are and why they’re needed
14:16 What is functional programming
17:06 Objects, classes, functions and metaclasses
19:31 Methods in OOP: how they differ from functions
23:41 Classmethod, staticmethod and abstractmethod
32:47 Practical exercise: the star operator
40:05 Another exercise on function signatures
46:35 The * operator in Python: wrapping, unwrapping and limitations
50:55 Candidate’s impressions after the interview
53:01 Detailed feedback from the interviewer
59:00 Final assessment and interview tips

#python #pythondeveloper #juniorpython #pythoninterview #interview #pythondeveloper #juniordeveloper #oop #programming #itcareer #interviewprep #developer #learningpython #mockinterview #pythonjunior