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 does print(list({"x": 10, "y": 20}.keys())) show? | StemPy Lab
Quizzes
/
What does print(list({"x": 10, "y": 20}.keys())) show?
Python Programming
Easy
High School (9–10)
High School (11–12)
Undergraduate
General
Python Essentials › Dictionaries
Created by
StemPy Lab
What does print(list({"x": 10, "y": 20}.keys())) show?
['x', 'y']
['x', 10]
['y', 'x']
[10, 20]
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← What does print(sum({"x": 10, "y": 20}.values())) show?
stock = {"apples": 12}. What does print(stock.get("mangoes", 0)) 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 →