← Back to videos

Mock interview with Arthur for a Junior Python developer position

Interview timeline Click any block to jump

Interview breakdown

Interviewer verdict
Needs more practice Level: Beginner (pre-Junior)

The candidate did not pass yet: having focused on building Django pet projects, he skipped foundational CS concepts — missing compiler vs interpreter, Git vs GitHub, API vs REST, underscore digit separators in Python literals, and the conceptual purpose of Big O. On the positive side, the interviewer praised his honest 'I don't know' answers and genuine live reasoning.

Candidate: Artur
Target role: Junior Python Developer

Former performing artist · learning Python since 2022 and building pet projects with Django and Django REST Framework · first technical mock interview

Answers accuracy 13 total
46% score
Theory
3/12 correct · 50%
Live coding
0/1 correct · 0%
Practical task
Not solved

Code reading: underscore digit separators _ in a Python numeric literal

Given a short Python snippet in chat assigning a number containing underscores to value, the candidate was unfamiliar with PEP 515 visual digit separators and mistakenly predicted an error from mixing digits with string characters.

Topics covered Click a topic to filter questions

Candidate strengths

  • + Honest acknowledgment of unknown topics without bluffing or burning interview time
  • + Genuine live reasoning rather than reciting rote textbook definitions
  • + Clear concrete analogy explaining classes, instances (car factory vs specific car), and __init__
  • + Practical familiarity with Django defaults (SQLite out of the box, supported RDBMSs, Django templates vs DRF)

Areas to improve

  • → Build language-agnostic CS fundamentals: compilation vs interpretation and Git version control vs GitHub hosting
  • → Articulate why classes and OOP exist conceptually (encapsulating mutable state with behavior, polymorphism) beyond 'grouping functions'
  • → Study backend fundamentals: API vs REST architectural style, Django middleware, NoSQL models, and DB normalization
  • → Review core Python literal syntax (PEP 515 numeric underscores) and the practical purpose of Big O complexity analysis

Questions in this interview

13 / 13
01 ▶ 05:00
How does a compiler differ from an interpreter, and how does Python execute code?
Theory Python internals, bytecode & runtime
?
Candidate's answer

Guessed that Python is a compiler and promptly admitted he did not know how compilers and interpreters differ.

Key takeaway

Python is a language whose standard CPython runtime compiles source files into intermediate bytecode and interprets those opcodes inside the Python Virtual Machine.

Open moment on YouTube ↗
#01
02 ▶ 06:28
Why do classes exist in Python, and when should you choose them over plain functions?
Theory OOP, classes & dunder methods
?
Candidate's answer

Used a clear Car class analogy (drive, honk) and mentioned extending behavior via inheritance, but struggled to distinguish classes from a module of functions beyond 'keeping related functions in one box'.

Key takeaway

Modules already group stateless functions; classes become essential when modeling multiple instances that each carry independent mutable state alongside shared methods.

Open moment on YouTube ↗
#02
03 ▶ 11:56
Is there a technical difference between a standalone function and a function defined inside a class?
Theory OOP, classes & dunder methods
?
Candidate's answer

Correctly noted that a regular function inside a class is invoked via a class instance, but missed method binding and the implicit 'self' first argument (as well as @staticmethod / @classmethod).

Key takeaway

Accessing a function on an instance produces a bound method that automatically passes the instance itself as the leading 'self' argument.

Open moment on YouTube ↗
#03
04 ▶ 13:59
Are 'object' and 'class instance' the same thing in Python?
Theory OOP, classes & dunder methods
?
Candidate's answer

Accurately stated that everything in Python is an object, and illustrated a class instance as a specific Ford Mondeo rolling off a factory blueprint with its own mileage and trim.

Key takeaway

Every runtime object in Python is an instance of some class (even classes are instances of metaclass type), while 'instance of X' specifies its concrete type.

Open moment on YouTube ↗
#04
05 ▶ 16:04
What is the __init__ dunder method in a class used for, and when do you define it?
Theory OOP, classes & dunder methods
?
Candidate's answer

Explained that __init__ runs during instance initialization to populate the newly created object with its initial attributes.

Key takeaway

__init__(self, ...) initializes attributes on an already-allocated instance (created by __new__) and must always return None.

Open moment on YouTube ↗
#05
06 ▶ 17:07
Is OOP a paradigm or a design pattern, and what principles define it?
Theory OOP, classes & dunder methods
?
Candidate's answer

Named abstraction, inheritance, and privacy (forgetting the terms encapsulation and polymorphism), conflated paradigm with design pattern, but reasoned well about preventing ripple-effect breakage as projects grow.

Key takeaway

OOP is a high-level programming paradigm built on abstraction, encapsulation, inheritance, and polymorphism, whereas design patterns are reusable micro-architectural solutions within a paradigm.

Open moment on YouTube ↗
#06
07 ▶ 29:02
What is SQL, how do relational and non-relational databases differ, and what are NoSQL and normalization?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Correctly defined SQL as a query language for tabular relational databases versus non-tabular stores, but got stuck explaining NoSQL as a category and honestly noted he hadn't studied database normalization.

Key takeaway

NoSQL denotes a family of non-relational database engines rather than a language, while relational normalization structures tables and foreign keys to eliminate data redundancy.

Open moment on YouTube ↗
#07
08 ▶ 33:00
What are REST and API, and are REST and REST API the exact same thing?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Started accurately by calling REST an architectural style and API an inter-application interaction mechanism, then doubted himself under questioning and concluded they are identical.

Key takeaway

An API is any software interaction contract, REST is a set of architectural constraints (stateless resources over HTTP), and a REST API is an API implementing those constraints.

Open moment on YouTube ↗
#08
09 ▶ 36:17
What happens when running Python code that assigns a numeric literal containing underscores between digits to 'value'?
Live coding Data types, numbers & memory
?
Candidate's answer

Predicted a runtime/syntax error, assuming underscores are evaluated as string characters illegally mixed with numeric digits.

Key takeaway

Since Python 3.6 (PEP 515), single underscores between digits (e.g., 1_000_000) are valid visual separators ignored by the parser when constructing numeric literals.

Open moment on YouTube ↗
#09
10 ▶ 39:15
Which database does Django use out of the box, which RDBMSs does it officially support, and what is middleware?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Correctly named SQLite as Django's default and listed PostgreSQL, MySQL, and Oracle among built-in backends, while honestly admitting he didn't know middleware.

Key takeaway

Django officially bundles backends for SQLite, PostgreSQL, MySQL/MariaDB, and Oracle, while middleware wraps the request/response cycle for auth, sessions, CSRF, and logging.

Open moment on YouTube ↗
#10
11 ▶ 40:45
What is Django REST Framework (DRF) for, and how does it differ from plain Django?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Distinguished core Django — geared out of the box toward server-rendered HTML templates — from DRF, which extends Django to build RESTful web APIs.

Key takeaway

DRF layers serializers, APIView/ViewSets, token authentication, pagination, and throttling onto Django to serve JSON/REST APIs cleanly.

Open moment on YouTube ↗
#11
12 ▶ 42:27
What is the difference between Git and GitHub?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Admitted that he had always assumed Git and GitHub were the exact same thing.

Key takeaway

Git is the distributed version-control CLI running locally, whereas GitHub is a cloud hosting platform built around remote Git repositories, pull requests, and CI/CD.

Open moment on YouTube ↗
#12
13 ▶ 43:16
What is an algorithm, and why do developers use Big O notation?
Theory Algorithms, code reading & engineering practices
?
Candidate's answer

Cleanly defined an algorithm as a sequence of steps producing a result and recalled quadratic complexity for nested loops, but got stuck explaining why Big O notation is needed conceptually.

Key takeaway

Big O compares how algorithms scale in step count and memory as input size N grows, abstracting away hardware speed and runtime noise.

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

Arthur was an artist, burned out, and only recently started learning programming and trying his hand at his first mock interview for a junior position.

Simple and complex questions, tricks and subtleties in interviews, and the importance of fundamental foundations.

Arthur didn't pass the interview because he focused on more specific things and lost focus on the fundamental foundations, however he gained valuable experience and constructive feedback.