$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · hard · #150
What is printed?
print(sorted({'b': 1, 'a': 2}))
['a', 'b']
['b', 'a']
[1, 2]
[2, 1]
Iterating a dict yields its keys, so sorted() returns the sorted keys.
Play Problem Solving ▸
◂ #149
all Problem Solving — predict the output questions
#151 ▸