Step: Slice: .[1:3]
Slice: .[1:3]
.[start:end] returns a sub-array from start (inclusive) to end (exclusive). Omit an end to run to the boundary: .[:2] (first two), .[2:] (from index 2 on).
Slicing also works on strings: "hello"[0:2] => "he".
Your turn: take the middle two hobbies (indices 1 and 2).
Input:
Expected:
Step 7 of 27