← Back to videos

Mock interview with Vladislav for a Junior Python developer position

Interview timeline Click any block to jump

Interview breakdown

Interviewer verdict
Passed with caveats Level: Borderline Junior (acceptable fundamentals, surface-level depth)

An imperfect but acceptable first interview ('more yes than no'): the candidate stayed honest without bluffing, answered slightly over half the questions at an acceptable Junior bar, and refactored the loop to idiomatic Python, though surface-level gaps showed in Python syntax edge cases, memory management internals, and API architecture alternatives.

Candidate: Vladislav
Target role: Junior Python Developer

18 y/o · 1.5 years coding in Python since high school (web apps, Telegram bots, scrapers), landed initial commercial work via portfolio without a technical interview; first-ever mock interview

Answers accuracy 13 total
54% score
Theory
1/6 correct · 58%
Live coding
1/7 correct · 50%
Practical task
Partially solved

Refactoring a semicolon-laden while-loop list traversal to idiomatic Python & PEP 8

The candidate traced the loop accurately, though he mistakenly expected semicolons in Python to raise SyntaxError. While refactoring 'while' to 'for', he initially introduced an off-by-one bug with range(1, 10) and unnecessary indexing before guided prompts led him to 'for item in numbers_list: print(item)'; he fixed EOF blank lines and renamed 'l', but missed the single-use temporary variable concept.

Topics covered Click a topic to filter questions

Candidate strengths

  • + Intellectual honesty—stating boundaries clearly instead of fabricating answers
  • + Practical understanding of Git version history, rollbacks, and team collaboration
  • + Sound reasoning on when to choose 'for' over 'while', reaching direct iterable traversal
  • + Calm, constructive communication during his very first technical interview at age 18

Areas to improve

  • → Look past surface-level familiarity to understand the 'why' and trade-offs behind core language mechanics
  • → Learn what CPython is and how reference counting plus cyclic garbage collection manage RAM
  • → Review Python syntax nuances and PEP 8 rules (semicolons, throwaway variables, avoiding 'l'/'O'/'I' names)
  • → Broaden backend API knowledge beyond REST (GraphQL, gRPC, WebSockets, RPC/SOAP)

Questions in this interview

13 / 13
01 ▶ 03:44
What are an interpreter and a compiler, which is faster at runtime, and what is CPython?
Theory Python internals, bytecode & runtime
?
Candidate's answer

Contrasted ahead-of-time compilation with step-by-step execution via intermediate bytecode and mentioned CPython by name, but guessed it was 'a version of Python'.

Key takeaway

CPython is the reference implementation of Python written in C, compiling source code into bytecode executed by its virtual machine.

Open moment on YouTube ↗
#01
02 ▶ 08:42
What is Python's Garbage Collector, and how does it know when memory can be reclaimed?
Theory Data types, numbers & memory
?
Candidate's answer

Explained automatic background reclamation of unused objects (briefly misspeaking 'hard disk' for RAM), while admitting he didn't know how Python detects unreachable objects.

Key takeaway

CPython reclaims RAM immediately via reference counting when an object's refcount hits zero, supplemented by a generational cyclic garbage collector for reference cycles.

Open moment on YouTube ↗
#02
03 ▶ 11:44
Does line-by-line interpretation mean a single line of Python can only contain one command?
Theory Control flow, loops & syntactic sugar
?
Candidate's answer

Reasoned that a line can combine nested calls in an assignment or multiple operations, though he was later surprised by semicolons during live coding.

Key takeaway

Python executes AST statements and bytecode opcodes rather than raw text lines; multiple simple statements can share a line via ';', though PEP 8 discourages it.

Open moment on YouTube ↗
#03
04 ▶ 14:38
Why is a variable defined inside a function inaccessible outside, and how does scope differ from a namespace?
Theory Functions, scopes & closures
?
Candidate's answer

Accurately explained function-local isolation and tentatively called a namespace a container of names, before blurring namespace and scope back together.

Key takeaway

A function's local namespace lives only during its call frame, and LEGB scoping is one-way—inner scopes see outer names, never vice versa.

Open moment on YouTube ↗
#04
05 ▶ 19:44
Is Python's list a classic array, and how does it differ from C-style arrays and linked lists?
Live coding Collections, lists, dicts & hash tables
?
Candidate's answer

Rightly noted C arrays enforce homogeneous types whereas Python lists store mixed-type references in contiguous memory closer to dynamic arrays than linked lists, though he wavered on terminology.

Key takeaway

Python's list is a dynamic array of object pointers; true compact homogeneous C-arrays in Python live in the stdlib 'array' module or NumPy.

Open moment on YouTube ↗
#05
06 ▶ 24:45
Does a trailing semicolon 'print(r);' or 'print(r); i += 1' on one line cause a SyntaxError in Python?
Live coding Control flow, loops & syntactic sugar
?
Candidate's answer

Predicted SyntaxError in both cases and was genuinely surprised when Python executed the semicolon-separated statements cleanly.

Key takeaway

Semicolons are valid statement separators in Python grammar (handy in 'python -c' one-liners), even though PEP 8 advises against them in source files.

Open moment on YouTube ↗
#06
07 ▶ 28:15
Why is a 'for' loop better than a manual-counter 'while' loop for traversing a list, and when should you use 'while'?
Live coding Control flow, loops & syntactic sugar
?
Candidate's answer

Clearly explained that 'for' handles element progression automatically over bounded sequences, while 'while' suits condition-based loops with an unknown iteration count.

Key takeaway

Manual index counters in while-loops add boilerplate and risk off-by-one bugs or infinite loops compared to direct 'for' iteration.

Open moment on YouTube ↗
#07
08 ▶ 32:51
How do you rewrite indexed list traversal into an idiomatic Python for-loop without unnecessary range() and len() calls?
Live coding Control flow, loops & syntactic sugar
?
Candidate's answer

Started with an off-by-one range(1, 10), fixed it to range(0, 10), suggested range(len(l)), and with prompting reached direct element iteration 'for item in l: print(item)'.

Key takeaway

Avoid 'for i in range(len(seq))': iterate directly over elements with 'for item in seq', or use 'enumerate(seq)' when both index and value are needed.

Open moment on YouTube ↗
#08
09 ▶ 39:28
What are Python code style standards, what tools check them, and how many blank lines belong at the end of a .py file?
Live coding Algorithms, code reading & engineering practices
?
Candidate's answer

Trimmed extra trailing blank lines down to a single newline at EOF and cited Pylint for automated linting, though he slipped by saying formatting standards help the interpreter run code.

Key takeaway

PEP 8 serves human readability rather than the interpreter (requiring a single trailing newline at EOF) and is enforced via linters/formatters like Ruff, Flake8, Pylint, and Black.

Open moment on YouTube ↗
#09
10 ▶ 41:37
What are single-use (throwaway) temporary variables and why can they clutter code?
Live coding Algorithms, code reading & engineering practices
?
Candidate's answer

Confused redundant intermediate variables (like 'r = l[i]' right before 'print(r)') with boolean flag variables, though rightly noted unnecessary locals add cognitive load.

Key takeaway

Introduce local variables when they clarify complex expressions or avoid recomputation, not as trivial single-letter pass-throughs like 'r = x; print(r)'.

Open moment on YouTube ↗
#10
11 ▶ 43:51
Why is naming a list variable with a single lowercase letter 'l' bad practice in Python?
Live coding Algorithms, code reading & engineering practices
?
Candidate's answer

Pointed out that 'l' conveys no domain meaning and renamed it to 'numbers_list', missing PEP 8's explicit ban on single-character 'l', 'O', and 'I'.

Key takeaway

Beyond descriptive naming, PEP 8 (E741) explicitly forbids single-letter names 'l', 'O', and 'I' because they are visually indistinguishable from '1' and '0' in many fonts.

Open moment on YouTube ↗
#11
12 ▶ 46:21
What is REST, how does it differ from a REST API, and what alternatives exist for service-to-service APIs?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Expanded Representational State Transfer and separated REST architectural constraints from a concrete CRUD REST API, but couldn't name alternative API paradigms.

Key takeaway

REST is a stateless resource-oriented architectural style; major API alternatives include GraphQL, gRPC, WebSockets, SOAP/JSON-RPC, and async message brokers.

Open moment on YouTube ↗
#12
13 ▶ 51:09
What is Git and what problems does it solve for solo developers and engineering teams?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Clearly explained tracking project history via commits for safe rollbacks without backup files, plus synchronizing changes across teammates via remote repos on GitHub or GitLab.

Key takeaway

Git maintains a directed graph of project snapshots, enabling safe rollbacks, isolated feature branches, and collaborative team workflows.

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

Not perfect, but quite acceptable interview with Vladislav. We got to know each other through comments on previous interviews and Vladislav also decided to try his hand.

The candidate is only 18 years old, but he's already writing Python code and navigating the language's features quite well. Although there are gaps in knowledge too.

Vladislav about himself: "I am a Junior python developer with 1.5 years of development experience specializing in web application development, Telegram bots and parsers."

Enjoy watching!