• Free

Ace Python Interviews

Prepare for your next Python job interview with 50 questions, answered in six hours of live-coding screencasts. The course is 100% free of charge!

Contents

Introduction

00 Introduction
jupyter-notebooks.zip

Section 1: Beginner-level questions

01 Mutable vs immutable
02 Highest square
03 *args and **kwargs
04 Lists vs. tuples
05 PEP 8
06 Local vs. global variables
07 Modules
08 Lists vs. arrays
09 What is __init__?
10 .py vs .pyc files
11 Different types of quotes
12 Docstrings
13 Swapping variables
14 break vs. continue
15 What is PyPI?
16 What are Python's basic data structures, and how are they used?
17 How do you iterate over a dict?
18 Counting vowels in a file
19 Adding to a dict
20 UnboundLocalError

Section 2: Intermediate-level questions

21 read_n
22 Fibonacci
23 What is self?
24 Sorting with lambda
25 Defaults
26 Static and class methods
27 Listing module functions
28 Memory management in Python
29 The "else" clause for loops
30 Context managers
31 Call by reference or call by value?
32 What is a closure?
33 What is the iterator protocol?
34 What is __name__?
35 str vs. bytes
36 Operator overloading
37 Whitespace separated numbers
38 Checking for palindromes

Section 3: Advanced questions

39 Mean square error
40 Type annotations
hello.py
41 Recursive directory listing
42 String-only arguments
43 Class attributes
44 What is the GIL?
45 Apply a function to a directory
46 is vs ==
47 mychain
48 myrange
49 full_name property
50 Speed descriptor

Section 4: Conclusion

Conclusion

FAQs

Who is this course aimed at?

Anyone planning to interview for a job involving Python coding. I obviously cannot predict which questions you will be asked, but it's more than likely that you'll be asked some questions similar to these — so you can think of them as practice questions, to prepare you for the interview.

What level are the questions?

I've tried to divide the questions into beginner, intermediate, and advanced level topics. I obviously couldn't cover everything, and I tried to stay close to core language features (rather than delve into Web development, devops, or data science), so your specific professional needs might not come up.

What version of Python do you use?

3.7. But everything I do should work in both 3.6 and 3.8.

For how long will this course be free?

Forever.  I don't intend to charge for this course.

Do you offer any discounts for this course?

Um, it's free. Tell ya what, I'll take 10% off of the price, just because I like you.

For how long can I access the course?

For as long as you want. No limit.