← Back to videos

Mock interview with Anton for a Junior Python developer position

Interview timeline Click any block to jump

Interview breakdown

Interviewer verdict
Needs more practice Level: Pre-Junior (Trainee)

The candidate did not pass yet: heavy interview nerves and surface-level theory study led to major misconceptions across ~80% of questions — from confusing the Python interpreter with VS Code to thinking lists randomly shuffle elements. The interviewer recommended thoroughly revisiting core Python fundamentals, reading others' code, and practicing clear explanations.

Candidate: Anton
Target role: Junior Python Developer

5 years in website/CMS/CRM administration and HTML email templates · completed a Python course, learning FastAPI on Stepik and building an aiogram + SQLAlchemy Telegram bot

Answers accuracy 12 total
33% score
Theory
1/9 correct · 44%
Live coding
0/3 correct · 0%
Practical task
Not solved

Removing list items inside a for-loop and checking a 1-tuple with isinstance()

The candidate could not solve either snippet: on numbers.remove(i) inside a loop, he misread the boundary 5 < 5, missed index shifting, and hypothesized that Python lists randomly shuffle elements like sets. On val = (1_000_000,), he missed the 1-tuple comma and predicted print(isinstance(val, int)) would print 1000000 instead of False.

Topics covered Click a topic to filter questions

Candidate strengths

  • + Active hands-on pet project (Telegram bot with aiogram and SQLAlchemy) and genuine motivation for backend work
  • + Honest self-assessment after the interview and openness to constructive feedback
  • + Basic understanding of function parameters vs arguments and relational table structures

Areas to improve

  • → Understand how code runs: the difference between a text editor/IDE, an interpreter, and a compiler
  • → Solidify built-in Python types and collections (bool, NoneType, list ordering/indexing vs set, 1-tuple syntax)
  • → Practice tracing code execution step by step, including list mutation pitfalls during iteration
  • → Articulate why version control (Git history, branching, rollbacks) matters independently of GitHub

Questions in this interview

12 / 12
01 ▶ 05:30
What are a compiler and an interpreter, and how does an interpreter differ from an editor like VS Code or Notepad?
Theory Python internals, bytecode & runtime
?
Candidate's answer

Could not define a compiler and called VS Code itself an interpreter, mistakenly claiming Notepad cannot save a .py file for execution.

Key takeaway

A .py file is plain text editable anywhere; the Python interpreter (python executable) is the separate runtime program that compiles source to bytecode and executes it.

Open moment on YouTube ↗
#01
02 ▶ 11:10
What loop constructs exist in Python, and how do for and while loops work?
Theory Control flow, loops & syntactic sugar
?
Candidate's answer

Correctly described for ... in as iterating over sequence elements and gave a practical Pygame main-loop example for while, though his explanation of condition checking was shaky.

Key takeaway

Python provides two loops: for consumes items from any iterable protocol object, while repeats its block as long as a boolean condition evaluates to truthy.

Open moment on YouTube ↗
#02
03 ▶ 14:19
How do you choose between for and while — for instance, to print the same string 10 times?
Theory Control flow, loops & syntactic sugar
?
Candidate's answer

Intuitively picked a for-loop to print 10 times, but froze when asked to explain why for is preferable to while here.

Key takeaway

Use for _ in range(n) when the iteration count or iterable is known upfront; reserve while for open-ended loops waiting on dynamic state changes.

Open moment on YouTube ↗
#03
04 ▶ 17:38
What is the boolean data type (bool) in Python and what values can it hold?
Theory Data types, numbers & memory
?
Candidate's answer

Correctly identified bool with True and False for logical truth values, but then mistakenly included None as a third boolean value.

Key takeaway

Python's bool (a subclass of int) has strictly two singleton instances, True and False; other objects only evaluate as truthy or falsy in boolean contexts.

Open moment on YouTube ↗
#04
05 ▶ 19:34
What is None in Python — a concrete value or nothing — and what is its data type?
Theory Data types, numbers & memory
?
Candidate's answer

Noted that None marks a default 'empty' parameter state, but got tangled up and misclassified None as having type bool.

Key takeaway

None is the sole object of its own dedicated type NoneType representing the absence of a value (though bool(None) evaluates to False in conditions).

Open moment on YouTube ↗
#05
06 ▶ 22:24
What is the difference between function parameters and arguments?
Theory Functions, scopes & closures
?
Candidate's answer

After gathering his thoughts, accurately explained via an (x, y) example that parameters appear in the function definition while arguments are passed when calling it.

Key takeaway

Parameters define placeholder names in the def header, while arguments are the concrete objects passed at the call site.

Open moment on YouTube ↗
#06
07 ▶ 24:41
What does for i in numbers: if i < 5: numbers.remove(i) do, and what list will be printed?
Live coding Collections, lists, dicts & hash tables
?
Candidate's answer

Understood the goal of removing numbers under 5, but mistakenly excluded 5 itself and couldn't trace which elements get skipped by in-place remove().

Key takeaway

Always trace strict vs non-strict comparisons (< vs <=) carefully, and never mutate a list in-place while iterating forward over it.

Open moment on YouTube ↗
#07
08 ▶ 28:41
Why did element 2 remain in the list after the remove() loop, and does a Python list preserve element order?
Live coding Collections, lists, dicts & hash tables
?
Candidate's answer

Could not explain index shifting and wrongly hypothesized that Python lists randomly reorder their elements on print or mutation, confusing list with set.

Key takeaway

A Python list strictly preserves insertion/index order; items are skipped during in-place removal because shifting elements left moves the next item into the already-visited index.

Open moment on YouTube ↗
#08
09 ▶ 34:00
What will print(isinstance(val, int)) output when val = (1_000_000,)?
Live coding OOP, classes & dunder methods
?
Candidate's answer

Overlooked the trailing comma of the 1-tuple and guessed the code would print 1000000, realizing only after execution that val is a tuple and isinstance() returns a bool.

Key takeaway

isinstance(obj, cls) always returns a boolean (True or False), and a parenthesized value with a trailing comma (x,) constructs a 1-element tuple.

Open moment on YouTube ↗
#09
10 ▶ 37:24
What is Git, how does it differ from GitHub, and why use Git even when working solo?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Separated the local Git tool from the remote GitHub hosting platform, but struggled to explain why a solo developer needs Git instead of simply saving files to disk or a flash drive.

Key takeaway

Git is a distributed version control system providing full commit history, diffs, isolated feature branches, and safe rollbacks — valuable even on solo projects without GitHub.

Open moment on YouTube ↗
#10
11 ▶ 49:00
What is SQL, and can it be used to query any database?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Initially called SQL a database before correcting himself that it is a query language, then narrowed its applicability from all databases to relational ones.

Key takeaway

SQL (Structured Query Language) is the declarative language used to query and manage relational database engines, not a database engine itself.

Open moment on YouTube ↗
#11
12 ▶ 51:10
How is data structured in relational versus non-relational (NoSQL) databases?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Described relational DBs via related tables with named columns and likened NoSQL document storage to lists of JSON-like dicts, honestly noting no hands-on NoSQL experience.

Key takeaway

Relational DBs normalize records across strictly typed tables and foreign keys, while NoSQL databases use document, key-value, wide-column, or graph data models with specialized query APIs.

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

Another useful interview!

Anton came to me with already existing IT experience. Previously he studied various programming languages and ultimately decided to focus on Python and backend development. Anton shared that his analytical thinking is perfect for building logic and optimizing web application processes, and Python attracted him with its simplicity and wide applicability.

Although Anton didn't pass the interview, this meeting was an important step in his professional growth. He received valuable insights and new insights that will help him move forward on the path to his goal.