Create a new list with zeros added to the beginning and end.
Constraints
Example
>>> pad_array([1, 2], 1, 2) [0, 1, 2, 0, 0] >>> pad_array([], 2, 3) [0, 0, 0, 0, 0] >>> pad_array([5], 0, 0) [5]
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints