-
Python question of the day What would be the output of executing the following code: a, *b, c = (1, 2, 3, 4, 5) print(b)2
(2, 3, 4)
[2, 3, 4]
ValueError
Explanation:For python, “Extended Iterable Unpacking” specifies a “catch-all” name which is assigned to a list of all items not assigned to a “regular” name.
