Question #240

What is the output of the code snippet below?
a, b, *c = range(5)
print(c)

In Python 3.0, the * operator was added to the multiple assignment syntax, allowing to capture remaining items after an unpacking into a list. (treyhunner.com/2018/03/tuple-unpacking-improves-python-co...)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: