Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
d = {"a": 1}. After d["b"] = 2, what is len(d)? | StemPy Lab
Quizzes
/
d = {"a": 1}. After d["b"] = 2, what is len(d)?
Python Programming
Easy
High School (9–10)
High School (11–12)
Undergraduate
General
Python Essentials › Dictionaries
Created by
StemPy Lab
d = {"a": 1}. After d["b"] = 2, what is len(d)?
1
3
2
0
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← What does {"a": 1}.get("z", 5) give?
A student writes marks["Kabir"] for a name that is not in the dictionary, and the program stops. What is the mistake? →
More on
Python Essentials › Dictionaries
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
Group these words by their length, in a dictionary where the key is the length and the value is the…
Medium
For this dictionary, write the expression for each answer.
Medium
Write a program that counts how many times each letter appears in the word mississippi, and shows…
Easy
Say whether a list or a dictionary is the better choice for each, and why.
Easy
All problems on this topic →