← Back to videos

Public mock interview with Emilia for a Junior Python developer position

Interview timeline Click any block to jump

Interview breakdown

Interviewer verdict
Passed with caveats Level: Junior (entry-level, borderline bar)

The candidate passed right at the lower Junior threshold with caveats: although initial code predictions missed due to limited hands-on practice, she stayed composed, reasoned logically to explain why True and 1 collapsed in a set and why an empty list was filtered out, and articulated OOP design well on a practical example.

Candidate: Emilia
Target role: Junior Python Backend

4th-year Business Informatics student at Plekhanov University, studying Python on top of coursework · first technical interview

Answers accuracy 13 total
62% score
Theory
4/10 correct · 70%
Live coding
0/3 correct · 33%
Practical task
Partially solved

Function with *args, set(), truthiness check 'if value', and True == 1 collision

Her initial predictions missed: she expected all arguments and an empty list [] to enter the set, and guessed *args is a mutable list inside the function rather than a tuple. After running the code, however, she deduced on her own why True and 1 collapsed into a single set item, explained set unorderedness and 'if value' filtering of [], and clearly distinguished parameters from arguments.

Topics covered Click a topic to filter questions

Candidate strengths

  • + Sound logical reasoning: uses foundational concepts to diagnose unexpected code output on her own
  • + Strong composure during her very first technical interview without derailing under pressure
  • + Clear practical explanation of classes and OOP when modeling entities in a Snake game
  • + Accurate grasp of the None singleton and mutable vs immutable data types

Areas to improve

  • → Build hands-on coding mileage and experiment in the REPL to replace tentative guessing with confidence
  • → Study core Python specifics: truthiness of empty collections, tuple type of *args, and O(1) hash lookups in set
  • → Clarify raising exceptions with 'raise' vs catching them, separate from HTTP status codes
  • → Practice foundational algorithmic patterns to prepare for algorithmic live-coding interviews

Questions in this interview

13 / 13
01 ▶ 03:19
What are data types in Python and why are they split into mutable and immutable types?
Theory Data types, numbers & memory
?
Candidate's answer

Listed mutable (list, dict, set) and immutable (int, float, str, tuple, bool) types, tying immutability to valid dictionary keys and fixed vs dynamically resizing memory.

Key takeaway

Immutable types guarantee value and hash stability (safe sharing and dict/set keys), while mutable containers allow efficient in-place updates without copying.

Open moment on YouTube ↗
#01
02 ▶ 05:10
What are data structures and how do they differ from data types?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Defined data structures as how multiple values are organized in memory, but equated them strictly with mutable collection types.

Key takeaway

Data structures can be either mutable or immutable (like tuple or frozenset); what defines them is how elements are organized and accessed.

Open moment on YouTube ↗
#02
03 ▶ 06:45
Why does Python need the bool type, and what does True + True evaluate to?
Theory Data types, numbers & memory
?
Candidate's answer

Explained bool's role in comparisons and conditional branching, and knew True + True runs without error because True equals 1, but hesitated between 1 and 2.

Key takeaway

In Python, bool subclasses int with True == 1 and False == 0, so True + True evaluates to 2—handy for idioms like sum(pred(x) for x in items).

Open moment on YouTube ↗
#03
04 ▶ 11:00
How do errors differ from exceptions, and why do developers explicitly raise exceptions as well as catch them?
Theory Exceptions & debugging
?
Candidate's answer

Separated syntax errors from catchable runtime exceptions, but confused raising exceptions with HTTP status codes and thought raising also prevents program termination.

Key takeaway

The 'raise' statement intentionally aborts normal execution when invariants or inputs fail, unwinding the call stack until a matching try/except handles it.

Open moment on YouTube ↗
#04
05 ▶ 14:26
What is a set, why does Python have it alongside list/tuple, and how do you create one?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Knew set enforces element uniqueness and can be created via set(...), but forgot curly-brace literals {1, 2} and O(1) membership lookup speed.

Key takeaway

Backed by a hash table, set provides average O(1) membership testing (x in s) and set algebra (|, &, -) versus O(n) linear scans in list or tuple.

Open moment on YouTube ↗
#05
06 ▶ 19:19
What does a function populating a set() return when given both 1 and True, and why does print order vary?
Live coding Collections, lists, dicts & hash tables
?
Candidate's answer

Initially predicted 5 elements, then explained set's lack of ordering and deduced on her own that 1 and True collapsed into one entry because True == 1.

Key takeaway

Because hash(1) == hash(True) and 1 == True, sets and dicts treat 1 and True as duplicate keys and retain whichever object was inserted first.

Open moment on YouTube ↗
#06
07 ▶ 25:35
Will an empty list [] be added to the set inside a function guarded by 'if value:'?
Live coding Control flow, loops & syntactic sugar
?
Candidate's answer

Predicted [] would be added since it is not None, missing both that empty collections are falsy in 'if value:' and that lists are unhashable.

Key takeaway

In boolean context, empty containers ([], {}, set(), '') evaluate to False; if a non-empty list passed 'if value:', s.add(...) would raise TypeError: unhashable type: 'list'.

Open moment on YouTube ↗
#07
08 ▶ 27:47
How do parameters differ from arguments, how does *args work, and what is type(args) inside the function?
Live coding Functions, scopes & closures
?
Candidate's answer

Clearly distinguished parameters (in def) from arguments (at call site) and noted 'args' is just a naming convention, but mistakenly said args is a mutable list inside the function.

Key takeaway

In a function definition, *args packs extra positional arguments into an immutable tuple, while **kwargs packs keyword arguments into a dict.

Open moment on YouTube ↗
#08
09 ▶ 31:09
What is None in Python, what class does it belong to, and are there other single-instance types?
Theory Data types, numbers & memory
?
Candidate's answer

Accurately stated None is the sole instance of NoneType returned by functions without return and used to mark missing values, honestly noting she hadn't met other built-in singletons.

Key takeaway

Alongside None (NoneType), Python's built-in single-instance types include Ellipsis (...) and NotImplemented (used in binary dunder comparisons).

Open moment on YouTube ↗
#09
10 ▶ 34:31
What is a class and why use classes when any program can be written with functions?
Theory OOP, classes & dunder methods
?
Candidate's answer

Described a class as a blueprint bundling state (attributes) and behavior (methods) to keep large codebases structured and maintainable.

Key takeaway

Classes encapsulate state alongside its operations and let objects implement shared interfaces and Python data-model protocols.

Open moment on YouTube ↗
#10
11 ▶ 35:43
What distinguishes production-grade and clean code from throwaway scripts, and is PEP 8 mandatory?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Highlighted safety, scalability, descriptive function names, 4-space indentation, and PEP 8 as a readability convention for teams rather than a syntax rule, getting slightly tangled on solo vs team projects.

Key takeaway

Production code is defined by maintainability, automated tests, error handling, security, and consistent linting/formatting (PEP 8), whether written solo or in a team.

Open moment on YouTube ↗
#11
12 ▶ 40:16
What are the core OOP principles, and why is a game like Snake cleaner to model with classes than plain functions?
Theory OOP, classes & dunder methods
?
Candidate's answer

Named encapsulation, polymorphism, inheritance, and abstraction, then cleanly modeled Snake into Snake, Food, and Board classes with their own state and actions.

Key takeaway

OOP excels when modeling stateful domain entities with distinct lifecycles and responsibilities rather than stateless data transformations.

Open moment on YouTube ↗
#12
13 ▶ 46:42
What programming paradigms does Python support, and should you mix them within one codebase?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Correctly identified Python as multiparadigm (imperative, functional, OOP), but argued developers should stick to a single paradigm rather than mixing them.

Key takeaway

Idiomatic Python pragmatically blends paradigms: OOP for service boundaries and models, functional style for pure data transformations, and imperative steps inside methods.

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

In this episode I conduct an open mock interview for a Junior Python Developer position with Emilia. We discuss basic and "tricky" Python questions, analyze code moments right in the interview and discuss how to prepare for technical and algorithmic interviews. At the end — detailed feedback: strengths, gaps and a growth plan.

What's inside
• Types vs data structures, mutable and immutable
• bool: logic, comparisons and why True + True works
• Sets: uniqueness, order, True vs 1 case
• Checking "emptiness" of values and where it's appropriate
• *args and **kwargs: parameters vs arguments, unpacking
• Exceptions: catch and "throw" — why and when
• None, "empty" values and practical truthiness/falsiness checks
• Classes and objects: why does a junior need OOP on real projects
• Paradigms (imperative, functional, OOP) and how to choose
• Clean and "industrial" code: PEP 8, readability, scalability
• How to prepare for algorithms: basic patterns and training plan

Who will find this useful
• Juniors and interns in Python
• Those preparing for their first technical interview
• Mentors and recruiters — as an interview format example

Timestamps

00:00 Greeting and interview plan
00:29 Introduction of participants
03:19 Theoretical questions
17:11 Working with code
33:45 Continuation of theoretical questions
50:59 Feedback exchange

If the episode was useful — like 👍, subscribe and write in the comments which topics to cover in the next interviews.

#Hashtags
#Python #Interview #Junior #PublicInterview #OOP #Algorithms #PEP8 #Set #Args #PythonInterview