Getting a Sublist
Extracts a portion of a list to create a new list.
- Creates a new list containing items from the Start position to the End position (inclusive).
- Example: Getting items 1 to 3 from
['a', 'b', 'c', 'd']returns['a', 'b', 'c'].
Extracts a portion of a list to create a new list.
['a', 'b', 'c', 'd'] returns ['a', 'b', 'c'].