← Back to videos

Mock interview with Timur for a Junior Python developer position

Interview timeline Click any block to jump

Interview breakdown

Interviewer verdict
Needs more practice Level: Junior knowledge base (held back by interview nerves and shaky argumentation)

On this very first interview attempt, the interviewer did not pass the candidate yet because strong nerves led to frequent slips and made him abandon correct answers whenever challenged with 'why?'. His underlying knowledge base and live code reading were solid, however — and after acting on this feedback, Timur went on to pass real interviews and land an offer.

Candidate: Timur
Target role: Junior Python Developer

21 y/o · finishing a Bachelor's in Laser & Plasma Technologies at MEPhI, admitted early to a Computer Science Master's program, completed a Python developer course, first technical interview

Answers accuracy 14 total
71% score
Theory
6/9 correct · 78%
Live coding
1/5 correct · 60%
Practical task
Solved

List code reading: myList.append vs list.append, quotes, PEP 8, and indentation

The candidate accurately predicted ['1', 2], explained how instance call myList.append('1') matches class call list.append(myList, 2), spotted the camelCase PEP 8 violation, and confirmed that 1- or 2-space indentation inside an if block still executes validly.

Topics covered Click a topic to filter questions

Candidate strengths

  • + Good foundational knowledge of data structures, stack-vs-heap references, and Big O time/space complexity
  • + Accurately traced the list code snippet, including unbound method call list.append(myList, 2)
  • + Correctly identified PEP 8 issues (snake_case naming, quote consistency) and linter usage
  • + Strong self-awareness and receptiveness to feedback despite intense first-interview nerves

Areas to improve

  • → Stand firm on correct answers instead of wavering under devil's-advocate follow-up questions
  • → Understand the underlying 'why' behind best practices rather than relying on memorized rules alone
  • → State knowledge boundaries cleanly instead of introducing new terms that open deeper rabbit holes
  • → Review implementing a linked-list Node class in Python and its true memory/insertion trade-offs vs list

Questions in this interview

14 / 14
01 ▶ 03:11
What is a classic array and how does it differ from Python's built-in list?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Explained that a classic array stores homogeneous elements of a single type (often fixed-size), whereas Python's list is mutable and holds heterogeneous objects.

Key takeaway

CPython's list is a dynamic array of PyObject* pointers supporting heterogeneous items; use array.array or NumPy for compact homogeneous buffers.

Open moment on YouTube ↗
#01
02 ▶ 05:26
How does a data type differ from a data structure, and can you implement one using the other?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Distinguished an object's type in memory from a data structure organizing elements, giving a stack built atop list, a custom class, or collections as an example.

Key takeaway

A data type defines values and operations, while a data structure defines layout and access invariants (e.g., a LIFO stack via list or collections.deque).

Open moment on YouTube ↗
#02
03 ▶ 07:00
How do static and dynamic arrays differ, and which one underpins Python's list?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Stated that static arrays have fixed capacity while dynamic arrays grow and shrink at runtime, matching Python's list behavior.

Key takeaway

Python lists over-allocate capacity on growth, achieving amortized O(1) time for list.append() despite occasional buffer reallocations.

Open moment on YouTube ↗
#03
04 ▶ 07:48
How does Python store variable references vs objects in memory (stack vs heap), and how does a linked list work?
Theory Data types, numbers & memory
?
Candidate's answer

Described variables as reference labels pointing to heap objects, and explained that each linked-list node holds a reference to the next node without contiguous buffer reallocations.

Key takeaway

All Python objects live on a private heap managed by pymalloc and reference counting, and linked lists chain independent node objects via attributes.

Open moment on YouTube ↗
#04
05 ▶ 09:19
How do you implement a linked list in Python with a custom class and __init__, and does it use a built-in list?
Theory OOP, classes & dunder methods
?
Candidate's answer

Initially misspoke that a linked list uses a built-in list internally, corrected himself that it uses node references, but froze when asked what attributes go inside __init__.

Key takeaway

A singly linked list node only needs def __init__(self, value, next=None): self.value = value; self.next = next, with no built-in list involved.

Open moment on YouTube ↗
#05
06 ▶ 14:22
What does myList = []; myList.append("1"); list.append(myList, 2); print(myList) do and print?
Live coding Collections, lists, dicts & hash tables
?
Candidate's answer

Traced list creation, appending string '1', and appending integer 2, accurately predicting the output ['1', 2].

Key takeaway

Both calls mutate the same list instance in place, appending a string followed by an integer.

Open moment on YouTube ↗
#06
07 ▶ 16:19
Why does "1" in double quotes print as '1' in single quotes inside a list, and which quote style should you use?
Live coding Strings, encodings & formatting
?
Candidate's answer

Rightly noted single and double quotes create identical str objects and emphasized project-wide consistency enforced by linters/formatters, without mentioning container repr() rules.

Key takeaway

Printing a list calls repr() on each item, and str.__repr__ defaults to single quotes unless the string contains an apostrophe without double quotes.

Open moment on YouTube ↗
#07
08 ▶ 19:09
How does myList.append("1") differ from list.append(myList, 2), and when would each be used?
Live coding OOP, classes & dunder methods
?
Candidate's answer

Accurately explained bound instance method call vs calling append on the built-in list class with explicit instance argument, but called choosing between them mere personal taste.

Key takeaway

obj.method(x) is the idiomatic polymorphic form; Class.method(obj, x) exposes unbound descriptor dispatch and is mainly useful when passing a method to map/filter (e.g., map(str.strip, lines)).

Open moment on YouTube ↗
#08
09 ▶ 22:36
What PEP 8 violations exist in the snippet, and is PEP 8 a mandatory language rule or a guideline?
Live coding Algorithms, code reading & engineering practices
?
Candidate's answer

Immediately flagged myList instead of my_list (snake_case) and explained team readability and linters, though wavered between calling PEP 8 a strict standard vs a recommendation.

Key takeaway

PEP 8 is an official style convention ignored by the Python interpreter itself, enforced at the team/CI level via linters like Ruff or Flake8.

Open moment on YouTube ↗
#09
10 ▶ 28:18
Does the Python interpreter require 4-space indentation, or will an if block with 2 spaces or 1 space still run?
Live coding Control flow, loops & syntactic sugar
?
Candidate's answer

Initially stated 4 spaces were required, then quickly corrected himself during the live check: any consistent positive indentation (1 or 2 spaces) is syntactically valid.

Key takeaway

Python's parser only requires consistent non-zero indentation within each block (raising TabError if tabs and spaces mix); 4 spaces is a PEP 8 convention.

Open moment on YouTube ↗
#10
11 ▶ 31:18
How do Python's built-in list and a linked list differ in memory layout, and when should you choose one over the other?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Rightly contrasted contiguous pointer slots giving O(1) indexing in list with scattered O(n)-lookup nodes in a linked list, but mistakenly claimed linked lists save memory and missed O(1) head insertions.

Key takeaway

In Python, custom Node objects consume far more memory than a list's compact pointer array; use collections.deque when you need O(1) appends and pops at both ends.

Open moment on YouTube ↗
#11
12 ▶ 41:22
What does Big O notation (O(1), O(n)) represent when evaluating an algorithm's time complexity?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Explained Big O as how step count / execution time scales with input size n, contrasting O(n) linear search with binary search on sorted data.

Key takeaway

Big O time complexity bounds the asymptotic growth rate of operations as input size n scales.

Open moment on YouTube ↗
#12
13 ▶ 45:30
How does Big O describe space complexity, and does O(1) time imply anything about memory usage?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Clearly separated time from space: O(1) index lookup describes runtime only, whereas allocating a new n-element array inside an algorithm yields O(n) auxiliary space.

Key takeaway

Time and space complexity are independent dimensions, often traded off against each other (e.g., spending O(n) dict/set memory to drop lookup time from O(n^2) to O(n)).

Open moment on YouTube ↗
#13
14 ▶ 50:03
Why analyze and optimize algorithmic complexity when cloud servers offer abundant CPU and RAM?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Wavered somewhat under persistent devil's-advocate pushback, but pointed to large dataset scaling, server resource footprint, and user-facing responsiveness.

Key takeaway

Poor asymptotic scaling (like O(n^2)) quickly overwhelms vertical hardware upgrades as data grows and inflates cloud infrastructure costs.

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

In this video — one of the first technical interviews for a beginning Python developer, Timur. Despite good theoretical foundation, nervousness noticeably affects his reasoning. We discuss basic topics, evaluate logic, code understanding and ability to stay calm in a stressful situation.

But the most important thing — Timur didn't give up. After the interview, he made conclusions, worked on his mistakes, successfully passed two more technical interviews and ultimately got an offer. This is a great example of how constructive feedback and persistence lead to results.

This interview will be useful for beginning developers who want to understand what to expect from interviews and what skills need to be developed — not just technical, but personal as well.

Like if the format was helpful, and subscribe — there are more analysis and interviews to come.

#Python #JuniorDeveloper #Interview #CodeAnalysis #Programming #InterviewDeveloper

Timestamps:

00:00 Introduction
00:31 A few words about the interviewer and candidate
03:10 Theoretical questions
14:10 Code experiments and questions about them
31:20 Continuation of theoretical questions
54:35 Feedback exchange

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://yoomoney.ru/to/4100119163947822
https://www.tbank.ru/cf/4PYyn4udS41