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(sorted({"b": 1, "a": 2})) show? | StemPy Lab
Quizzes
/
What does print(sorted({"b": 1, "a": 2})) show?
Python Programming
Easy
High School (9–10)
High School (11–12)
Undergraduate
General
Python Essentials › Essentials Projects
Created by
StemPy Lab
What does print(sorted({"b": 1, "a": 2})) show?
[2, 1]
[1, 2]
['a', 'b']
['b', 'a']
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← What does print(statistics.median([3, 1, 2])) show?
counts = {} and then print(counts.get("z", 0)). What is shown? →
More on
Python Essentials › Essentials Projects
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 →