I have the general idea of how to do this in Java, but I am learning Python and not sure how to do it.
I need to implement a function that returns a list containing
Slice notation a[start_index:end_index:step]
a[start_index:end_index:step]
return a[::2]
where start_index defaults to 0 and end_index defaults to the len(a).
start_index
0
end_index
len(a)