Review Note
Last Update: 07/10/2024 01:20 PM
Current Deck: Python fundamentals
Published
Fields:
Code
a, b, *c = [1, 2, 3, 4, 5] print(a, b, c) |
Output
1 2 [3, 4, 5]
Explanation
Iterable unpacking.
Use the * operator to capture spare values in a list.
Use the * operator to capture spare values in a list.
Context
Python
Tags:
Suggested Changes:
Deck Changes (Suggestion to move the Note to the following Deck):
Field Changes:
Tag Changes: