The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #310
my_dict = {'one': 1, 'two':2, 'three': 3}
a, b, c = my_dict
print(b)
When unpacking dictionaries, the keys of the dictionary are unpacked. (stackabuse.com/unpacking-in-python-beyond-parallel-assign...)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) August 17, 2020
my_dict = {'one': 1, 'two':2, 'three': 3}
a, b, c = my_dict
print(b)
two
2
It will throw a ValueError error.#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅