calling from a list elements in steps

Solutions on MaxInterview for calling from a list elements in steps by the best coders in the world

showing results for - "calling from a list elements in steps"
Reilly
13 Apr 2019
1some_list[start:stop:step]
2#example
3l = list(range(0,9))
4l[0::2] #> take the first position until the last by step 2