$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · easy · #93
What is printed?
print(tuple('ab'), list({'a': 1}))
('a', 'b') ['a']
('ab',) ['a']
('a', 'b') [1]
('ab',) [('a', 1)]
Both iterate their argument; iterating a dict yields its keys.
Play Problem Solving ▸
◂ #92
all Problem Solving — predict the output questions
#94 ▸