← Code LabPython0/50 solved · 0%
Collections · easy

6. Lists

Index, append, and slice.

Write `first_and_last(items)` returning a two-element list `[items[0], items[-1]]`.
Required in your answer: def first_and_last