Consider the following recursive function: def p(xs: list[in…
Consider the following recursive function: def p(xs: list[int]) -> list[int]: match xs: case []: return [] case [x]: return [x] case [first, second, *rest]: return p(rest) + [first, second] What list will p([1, 2, 3, 4, 5]) return?
Read Details