Skip to Content
Python Advanced: Code That Scales Past Your Own Laptop
Advanced
0 likes
Courses
Python Advanced: Code That Scales Past Your Own Laptop

Check Yourself: Catch Bugs Before You Run the Code

Five scenario questions on type hints and mypy. If you miss more than one, reread the two lessons before moving on.

Course content

Sign in to save your progress.

Course Home
1. A function is hinted -> str but returns None when no customer is found. What is wrong with that?
2. Your function only loops over its argument once. Which hint accepts a list, a tuple and a generator?
3. mypy reports nothing for an old function without any hints, even though it clearly has a bug. Why?

About

Five scenario questions on type hints and mypy. If you miss more than one, reread the two lessons before moving on.

Duration
5 min
Last update
09/03/2026
Was this helpful?
​ 0 ​ 0

Comments (0)

Sign in to comment

No comments yet.