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 #309
a, b = [1, 2, 3]
print(b)
It will throw a ValueError error. When unpacking values, the number of variables on the left side must exactly match the number of values on the right side iterable, unless the * operator is used. (stackabuse.com/unpacking-in-python-beyond-parallel-assign...)
What is the output of the code snippet below?
— The Python Quiz (@thepythonquiz) December 11, 2020
a, b = [1, 2, 3]
print(b)
3
It will throw a ValueError error.
1
2#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅