Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
What is {"a": 1, "b": 2}["b"]? | StemPy Lab
Quizzes
/
What is {"a": 1, "b": 2}["b"]?
Python Programming
Easy
High School (9–10)
High School (11–12)
Undergraduate
General
Python Essentials › Dictionaries
Created by
StemPy Lab
What is {"a": 1, "b": 2}["b"]?
A KeyError
b
2
1
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← def f(x=10) returns x + 1. What does print(f()) show?
What does len({"x": 10, "y": 20, "z": 30}) show? →
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 →