Question #241

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

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


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: