B4Coder
0%
LessonAbout 6 min

Chapter 8 · Lesson 2 of 5

02. Is it there? in and get()

Asking for a key that isn't there is a KeyError. Check first with in, or use get() with a default.

Opening the lesson…