← Back to videos

Mock interview with Daniel for a Junior Python Developer position

Interview timeline Click any block to jump

Interview breakdown

Interviewer verdict
Passed with caveats Level: Borderline Junior- / Intern

A borderline 50/50 outcome: the interviewer highlighted composed communication, good analogies (O(n) list lookup vs O(1) dict lookup, deriving O(n²) on a JavaScript snippet, Git vs GitHub), and willingness to advance the candidate to a follow-up practical round. However, foundational knowledge still needs structuring to eliminate reversed slips of the tongue and class-vs-instance confusion.

Candidate: Daniil
Target role: Junior Python Developer

21 y/o · exploring Python for 3 years (1.5 years of focused study in a Python developer course), interested in software architecture · first technical interview

Answers accuracy 14 total
71% score
Theory
5/12 correct · 71%
Live coding
1/2 correct · 75%
Practical task
Solved

Reviewing nested loops in code and analyzing O(n²) complexity

Given a JavaScript snippet with two nested for-loops in chat, the candidate identified JavaScript from its braces and increment syntax, traced outer and inner iterations to derive O(n²) time complexity, illustrated scaling at n = 100 (10,000 vs 100 operations), and with minor nudges explained judging optimality against alternative algorithms and task constraints.

Topics covered Click a topic to filter questions

Candidate strengths

  • + Calm, composed delivery on a first interview and effective use of concrete analogies
  • + Accurate contrast of O(n) list search vs O(1) dict lookup and solid O(n²) analysis of nested JavaScript loops
  • + Clear understanding of distributed version control in Git versus remote repository hosting on GitHub
  • + Realistic 50/50 self-assessment and accurate reflection on knowledge gaps

Areas to improve

  • → Separate subclassing (inheritance) cleanly from instantiating concrete objects in OOP explanations
  • → Slow down slightly when formulating definitions to avoid reversing terms like compilation vs interpretation
  • → Gain hands-on SQL practice and study database normalization beyond splitting strings (eliminating redundancy and update anomalies)
  • → Structure CS fundamentals top-down ('why and when') rather than relying only on habit from writing code

Questions in this interview

14 / 14
01 ▶ 04:48
How do compilation and interpretation differ, and how is Python code executed?
Theory Python internals, bytecode & runtime
?
Candidate's answer

Correctly noted Python's interpreted nature with an initial compilation step on .py startup, but misspoke in reverse by saying interpretation translates the whole program upfront while compiled code runs line by line.

Key takeaway

A compiler translates the whole program ahead of execution, whereas an interpreter executes instructions dynamically; CPython compiles .py source to bytecode before interpreting it.

Open moment on YouTube ↗
#01
02 ▶ 08:25
Is a compiler or an interpreter objectively better, and does it determine which tasks are solvable?
Theory Python internals, bytecode & runtime
?
Candidate's answer

Argued that neither is universally better: any Turing-complete language can solve most tasks, with compiled C favoring raw execution speed and Python favoring developer velocity and ecosystem breadth.

Key takeaway

Ahead-of-time compiled languages maximize raw CPU efficiency, while interpreted dynamic languages trade runtime overhead for rapid iteration and rich ecosystems.

Open moment on YouTube ↗
#02
03 ▶ 10:55
Why do developers need classes in Python if tasks can already be solved with functions and modules?
Theory OOP, classes & dunder methods
?
Candidate's answer

Explained that classes group related attributes and methods (like a User model) for maintainable production code, though he overstated that functional code would need a separate function per user.

Key takeaway

Without classes you pass raw dicts/tuples across disconnected functions; classes bind state and invariant-preserving methods onto each instance.

Open moment on YouTube ↗
#03
04 ▶ 17:35
Does merely using the 'class' keyword mean your code follows object-oriented programming?
Theory OOP, classes & dunder methods
?
Candidate's answer

Correctly noted that a single class keyword is just syntax whereas OOP is a broader design paradigm, but could not articulate a concrete criterion for true object-oriented code.

Key takeaway

Using classes as namespaces for static functions or dumb data bags is still procedural; true OOP models domain behavior via encapsulation, abstraction, and polymorphism.

Open moment on YouTube ↗
#04
05 ▶ 19:55
How does an object differ from a class in Python, and how do classes, instances, attributes, and methods relate?
Theory OOP, classes & dunder methods
?
Candidate's answer

Rightly noted that classes themselves are objects in Python and illustrated attributes/methods with an Animal -> Cow example, but conflated subclassing Cow with instantiating an individual animal object.

Key takeaway

A class is a blueprint object (an instance of type), 'class Cow(Animal)' defines a subclass, and calling Cow('Bessie') instantiates an individual object.

Open moment on YouTube ↗
#05
06 ▶ 27:02
What is a scope in Python, and how does a namespace differ from it?
Theory Functions, scopes & closures
?
Candidate's answer

Accurately traced variable lookup from a function's parameters/locals out to the module global level, but claimed lookup stops at the file boundary (missing builtins) and defined a namespace loosely.

Key takeaway

Name resolution walks Local -> Enclosing -> Global -> Built-in (builtins above the module), where each namespace is a concrete name-to-object dictionary.

Open moment on YouTube ↗
#06
07 ▶ 30:58
What is SQL, which databases use it, and what does NoSQL stand for?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Expanded SQL as Structured Query Language for CRUD operations on tabular relational DBMSs like SQLite, contrasting them with non-relational NoSQL document and key-value stores.

Key takeaway

Relational databases execute declarative SQL over schema-enforced tables, whereas NoSQL engines expose specialized APIs for documents, key-value pairs, or wide-column stores.

Open moment on YouTube ↗
#07
08 ▶ 35:02
How is data organized in relational databases, and what practical problem does normalization solve?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Described key-linked tables and gave a good 1NF example of splitting a full-name string into separate atomic columns, but missed eliminating data redundancy and update anomalies across related tables.

Key takeaway

Beyond atomic columns (1NF), normalization (2NF, 3NF, BCNF) eliminates redundant data duplication and update/delete anomalies by factoring repeated entities into foreign-key-linked tables.

Open moment on YouTube ↗
#08
09 ▶ 42:59
What is an algorithm, and does every working piece of code embody an algorithm?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Started accurately by stating any working code represents an algorithm, then got sidetracked into treating 'an algorithm' as only an optimized routine needed for 100,000 items rather than 10.

Key takeaway

Every finite procedure transforming inputs into outputs is an algorithm; naive and optimized implementations simply represent different algorithms with different scaling costs.

Open moment on YouTube ↗
#09
10 ▶ 50:18
How does searching for an item in a Python list compare in complexity to looking up a key in a dict?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Used a bookshelf analogy to clearly contrast O(n) linear scanning across a list with O(1) constant-time key lookup in a dictionary.

Key takeaway

Membership/lookup in a list scans sequentially in O(n), whereas dict and set compute hash(key) to probe a hash table in O(1) average time.

Open moment on YouTube ↗
#10
11 ▶ 54:36
What programming language is the nested-loop snippet written in, and what is its time complexity?
Live coding Algorithms, code reading & engineering practices
?
Candidate's answer

Identified JavaScript from curly braces and C-style increment loops, traced n inner iterations for each of the n outer steps, and derived O(n²) quadratic complexity.

Key takeaway

Nested loops over an input of size n multiply their work to O(n²), whereas sequential non-nested loops add up to O(n).

Open moment on YouTube ↗
#11
12 ▶ 57:39
Once we know our implementation runs in O(n²), how do we decide whether that is optimal?
Live coding Algorithms, code reading & engineering practices
?
Candidate's answer

Illustrated scaling well at n = 100 (10,000 ops vs 100), initially jumping to refactoring advice before concluding with prompts that you compare complexity against alternative algorithms and input-size constraints.

Key takeaway

O(n²) is only suboptimal if a lower-complexity algorithm exists for the same problem (whereas visiting every cell of an n×n matrix inherently requires Ω(n²)) and input sizes make O(n²) too slow.

Open moment on YouTube ↗
#12
13 ▶ 01:01:32
What is Git and why use it when your code is already in a folder and your editor has Ctrl+Z undo?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Explained that editor undo buffers are ephemeral and limited, whereas distributed Git records a permanent timeline of commits, branches, and merges for safe rollback and team collaboration.

Key takeaway

Git tracks content-addressed snapshots of the entire project tree, enabling branching, multi-developer merging, regression hunting (git bisect), and history auditing.

Open moment on YouTube ↗
#13
14 ▶ 01:03:41
How does Git differ from GitHub, and how do they work together?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Separated Git as the local version-control engine usable from the terminal from GitHub (and GitLab) as cloud platforms hosting remote repositories, web diffs, and collaborative code review.

Key takeaway

Git is the open-source local VCS tool, while GitHub/GitLab are remote hosting services adding Pull Requests, Issues, and CI/CD pipelines on top of Git.

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

Daniel is still learning Python, but is already trying his hand as a candidate for a Python developer role. Daniel didn't fail the interview, but didn't pass it either. As usual - tricky questions and checking the candidate's knowledge!