Junior Python interview: the candidate has a stronger grasp of OOP than is typical for a junior level
A mock interview for the role of Junior Python Developer, focusing on OOP and the inner workings of Python. We discussed classes, objects, metaclasses, inheritance, type(), dynamic class creation, as well as the magic methods __str__ and __repr__. Finally, there is a detailed analysis of the candidate’s answers and feedback not only on the technical aspects but also on soft skills during the interview.
Timecodes:
00:00 — Start
00:11 — Introduction of participants
01:35 — How the interview will proceed
03:16 — What is a class in Python
06:13 — Objects, classes and metaclasses
09:25 — What is a metaclass
13:16 — Inheritance in Python
22:08 — Multiple inheritance and its issues
28:04 — Can an object be inherited from?
31:10 — How to determine an object’s class
34:46 — What is type() and how does it work?
41:17 — __repr__ and __str__
44:21 — Practical exercise: analysing code with type()
53:31 — Dynamic creation of attributes and methods
57:26 — Moving on to feedback
59:17 — Feedback on the interview