← Back to videos

Mock interview with Ali for a Junior Python developer position

30.09.2025
Interview timeline Click any block to jump

Interview breakdown

Interviewer verdict
Needs more practice Level: Pre-Junior (significant gaps in core fundamentals)

The candidate did not pass yet: expecting questions on asyncio and OOP, he stumbled on core Python fundamentals—bool arithmetic, None vs NoneType, the statement 'pass' vs the Ellipsis (...) object, and implicit None returns from functions without 'return'. Still, his composed communication and willingness to test hypotheses provide a solid base once he studies fundamentals systematically.

Candidate: Ali
Target role: Junior Python Backend

Information Systems college graduate studying Python independently with pet projects · no prior commercial experience

Answers accuracy 13 total
31% score
Theory
2/6 correct · 50%
Live coding
0/7 correct · 14%
Practical task
Not solved

Functions without return, None semantics, and pass vs ... vs bare literals

Nearly all code predictions missed: the candidate expected blank output instead of None for print(func()), an error on 'def f(): None', an error on 'a = ...', a class printout on 'a = pass', and 123 returned from 'def f(): 123' without 'return', while mistaking NameError on unquoted 'abc' for a missing-quote string error. Through live trials he deduced functions without 'return' always yield None, though he attributed it to a hidden magic method.

Topics covered Click a topic to filter questions

Candidate strengths

  • + Clear, composed explanations on familiar basics (if/else branching, while flags, list vs tuple)
  • + Open-minded when live code disproves his guesses, updating his mental model on the spot
  • + Proactively suggests small code experiments to test hypotheses about function behavior
  • + Healthy learning mindset on pet projects: build a simple working solution first, then refactor

Areas to improve

  • → Work through structured Python fundamentals before jumping into advanced libraries or asyncio
  • → Master core types and singletons: bool subclassing int, None as an instance of NoneType, and 'pass' vs Ellipsis (...)
  • → Review classic data structures and Big O complexity (linked lists vs dynamic arrays and hash tables)
  • → Avoid name-dropping tangential concepts like dunder methods when unsure, and state 'I don't know, let me reason aloud' directly

Questions in this interview

13 / 13
01 ▶ 03:39
What are True and False in Python, and how are boolean values used?
Theory Data types, numbers & memory
?
Candidate's answer

Explained that True and False are boolean values representing truthiness in if/else branches and flag-controlled while loops.

Key takeaway

Named after George Boole, Python's bool type has exactly two singleton instances: True and False.

Open moment on YouTube ↗
#01
02 ▶ 07:24
Can you add True and False arithmetically, and what does 'True + False + True' output?
Theory Data types, numbers & memory
?
Candidate's answer

Insisted booleans cannot be added and predicted an exception; after seeing 2 in the editor, recalled True equals 1 and False equals 0.

Key takeaway

Because bool is a subclass of int in Python, True and False participate in integer arithmetic as 1 and 0 respectively.

Open moment on YouTube ↗
#02
03 ▶ 09:59
How do mutable and immutable data types differ, using list and tuple as examples?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Explained that a list can be mutated in-place via append, pop, and remove, whereas a tuple allocates fixed-size storage for unchanging records.

Key takeaway

Tuples allocate a single compact memory block without over-allocation overhead, making them lighter than lists and usable as dict keys when elements are hashable.

Open moment on YouTube ↗
#03
04 ▶ 11:18
Does Python have arrays, and how does a list differ from an array?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Claimed Python has no built-in arrays (overlooking stdlib's array module) while vaguely recalling type restrictions or size limits in classic arrays.

Key takeaway

Python's standard library includes array.array for compact homogeneous numeric storage, while NumPy's ndarray is the ecosystem standard for dense typed arrays.

Open moment on YouTube ↗
#04
05 ▶ 15:39
Conceptually, when you define a custom class in Python, are you creating a new data type?
Theory OOP, classes & dunder methods
?
Candidate's answer

Initially recited syntax steps (__init__, __iter__, __next__) before agreeing under follow-up that defining a class creates a new custom data type.

Key takeaway

In Python 3, 'class' and 'type' are unified: every class definition creates a first-class custom data type.

Open moment on YouTube ↗
#05
06 ▶ 17:13
What is a data structure, how does a linked list work, and how does its lookup speed compare to list?
Theory Collections, lists, dicts & hash tables
?
Candidate's answer

Forgot what a data structure is, confused a linked list with key-value pairs in a dict, and wrongly claimed linked lists provide the fastest search.

Key takeaway

Linked lists (and collections.deque) offer O(1) insertions/removals at ends, but both value search and arbitrary index access cost O(n).

Open moment on YouTube ↗
#06
07 ▶ 20:52
What is the 'pass' statement for, and what does print(func()) output for 'def func(): pass'?
Live coding Control flow, loops & syntactic sugar
?
Candidate's answer

Accurately explained 'pass' as a no-op placeholder satisfying indentation syntax, but predicted print(func()) would output nothing.

Key takeaway

Every Python function call returns an object: reaching the end of a function body without 'return' implicitly returns None, which print() outputs as 'None'.

Open moment on YouTube ↗
#07
08 ▶ 23:51
What is None in Python—is it a data type itself or an instance of a class?
Live coding Data types, numbers & memory
?
Candidate's answer

Insisted that None is a data type itself rather than an instance of a class.

Key takeaway

None is a value object—specifically the singleton instance of built-in class NoneType—just as 123 is an instance of int.

Open moment on YouTube ↗
#08
09 ▶ 27:15
What do functions whose bodies are '...' or 'None' (without return) output, and are pass, ..., and None identical syntactic sugar?
Live coding Data types, numbers & memory
?
Candidate's answer

Predicted None for '...' and an exception for bare 'None', then concluded after running both that pass, ..., and None are identical syntactic sugar.

Key takeaway

All three functions return None solely because none of them execute a 'return' statement; pass is a keyword statement while None and ... are expression objects.

Open moment on YouTube ↗
#09
10 ▶ 32:03
What happens when executing the assignments 'a = None', 'a = ...', and 'a = pass'?
Live coding Data types, numbers & memory
?
Candidate's answer

Correctly predicted None for 'a = None', but expected an exception on 'a = ...' and a class printout on 'a = pass' instead of SyntaxError.

Key takeaway

Only expressions evaluating to objects (like None or Ellipsis '...') can be assigned to variables; 'pass' is a statement keyword, so 'a = pass' raises SyntaxError.

Open moment on YouTube ↗
#10
11 ▶ 37:09
Can a Python function produce a value other than None without using a 'return' statement?
Live coding Functions, scopes & closures
?
Candidate's answer

Properly distinguished console print() from returning a value and concluded no non-None value can be returned without 'return', forgetting generator 'yield'.

Key takeaway

A regular function without 'return' always returns None, whereas a function containing 'yield' returns a generator object that produces values lazily.

Open moment on YouTube ↗
#11
12 ▶ 40:31
What does calling 'def func(): 123' return when 123 is written without 'return'?
Live coding Functions, scopes & closures
?
Candidate's answer

Predicted the function would return 123; after further tests realized it still returns None, though he attributed that to a 'magic method' on functions.

Key takeaway

Unlike Ruby or Rust, Python has no implicit last-expression return: '123' is evaluated and discarded, and bytecode compilation appends an implicit 'return None'.

Open moment on YouTube ↗
#12
13 ▶ 41:31
Why does writing unquoted 'abc' inside a function body raise an exception when called?
Live coding Exceptions & debugging
?
Candidate's answer

Thought Python recognized 'abc' as a string literal with missing quotation marks.

Key takeaway

Unquoted 'abc' is parsed as a valid variable identifier, raising a runtime NameError ('name "abc" is not defined') when the function executes.

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

In this video, a mock interview for a Junior Python position. We discuss in simple language what True/False is, how None works, the difference between pass and ... (Ellipsis), why a function sometimes "returns" a value without return, and why a junior needs a solid foundation before async and modules. At the end — detailed feedback from the interviewer.

Why watch
- You'll understand which basic topics are really asked on junior positions and how to answer them.
- You'll understand the subtle aspects of Python: boolean values as numbers, function behavior without return, pass vs Ellipsis.
- You'll see typical candidate mistakes (dodging the question, "magic methods" in the wrong place) and learn to answer honestly: "I don't know, but I can reason through it".
- Get a plan on how to improve your foundation and level up practice.

Interview results

The candidate holds his ground confidently and knows the basics at the level of terminology, but the foundation is uneven in some places and lacks practical coding. Result — the interview was not passed this time, however, with work on the foundation and regular practice, a similar interview can be closed within a few months.

Timestamps

00:00 Greeting
00:30 Introduction of participants
01:58 Interview format
03:38 Theoretical questions
20:41 Working with code
44:59 Final feedback and level-up plan

For whom the video is for
- Candidates for Junior Python
- Self-taught learners who have "touched libraries" and want to organize their foundation
- Mentors and team leads collecting banks of questions and evaluation criteria

How to support the episode

If the format is useful — like, subscribe and write in the comments:
Which interview question confused you and what else to cover in the next episodes.

Hashtags:
#python #interview #juniorpython #interview #programming