A new mock interview for a Python developer: a live conversation with candidate Chingis and my comments. If you're preparing for an interview, want to understand common mistakes, and "how the interviewer thinks," this episode is for you.
Subscribe, give a 👍, and comment on topics we'd like to cover in future interviews—this way, you'll help the channel grow and get more useful analysis!
What the video is about
• How to choose between for and while
• Namespaces vs. scopes
• List comprehension: what happens to scope
• Closures with a clear example (outer/inner)
• pass and alternatives
• What None really is and where it's appropriate to use it
• Candidate feedback: why it's important to answer "why" and not just "how"
Who is it for
• Junior and middle programmers preparing for Python interviews
• Anyone who wants to systematize the theory
Timecodes
00:00 — Introduction and introduction
02:43 — Interview format and rules
04:41 — Question 1: What loops are there in Python?
06:06 — What's the difference between for and while?
07:46 — When should I use for and when should I use while?
12:33 — Question 2: What is a namespace?
14:06 — Are namespaces and scopes the same thing?
17:05 — How to create a new namespace?
19:20 — Namespaces in list comprehension
20:43 — Code review: nested functions and closures
22:00 — How does accessing an outer function variable work?
26:47 — Running the code — what will be returned?
29:11 — Question 3: What is a closure and why is it needed?
36:47 — Question 4: What does pass do? Can it be replaced?
43:19 — Question 5: What is None?
45:44 — None as an object — an instance of what class?
47:05 — Philosophical question: if everything in Python is an object, where do they come from? 53:39 — Wrapping up, moving on to feedback
54:17 — Feedback from the candidate: self-assessment
55:52 — Feedback from the interviewer: what you liked
Want more mock interviews and problem-solving exercises? Support the video with a like and subscribe — it's the best motivation to make more useful episodes.
Useful links:
• Python interview preparation — https://habr.com/ru/companies/yandex_...
Hashtags
#python #interview #interview #junior #backend #loops #scope #closure #listcomprehension #None #pass #ITcareer #interviewpreparation