🔥 0
0 XP
Lv.1 Beginner
FAQ
Log In
Home
Python
Getting Started with Python
Dictionaries
Dictionaries Quiz
Dictionaries Quiz
Pass with 80%
Chapter: Dictionaries
1
2
3
4
Question 1 of 4
Choose one answer
What happens if you access a key that doesn't exist with
dict[key]
?
Python raises a KeyError
It returns None
It returns 0
It creates the key automatically
Check answer
Previous · Lesson
Dictionaries
Next · Exercise
Phone Book