Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
Why is a dictionary a good tool for a contact book? | StemPy Lab
Quizzes
/
Why is a dictionary a good tool for a contact book?
Python Programming
Easy
High School (9–10)
High School (11–12)
Undergraduate
General
Python Essentials › Essentials Projects
Python Essentials › Dictionaries
Python Essentials › Errors and Exceptions
Python Essentials › Text Processing
Created by
StemPy Lab
Why is a dictionary a good tool for a contact book?
A dictionary stops us from adding the same name twice
We look up a number by the name, which is the key
A dictionary sorts the names for us
A dictionary is faster than a list for every job
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← A student counts the words of "The cat. the CAT!" with split() only, and gets 4 different words. What is the mistake?
What does contacts.get("zoya") give if there is no Zoya in the book? →
More on
Python Essentials › Essentials Projects
Python Essentials › Dictionaries
Python Essentials › Errors and Exceptions
Python Essentials › Text Processing
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
Write a function above_mean(marks) for a dictionary of name and mark.
Medium
Choose a project: a program that keeps the scores of a quiz game and shows who is winning.
Easy
Write three small functions square(n), double(n) and negate(n), and a dictionary operations that…
Medium
The sorted marks are 64, 78, 78, 85, 92.
Hard
All problems on this topic →