0

I have a list: A = [6, 4, 3, 5, 2, 1] and I want to create a new list: B = [] where B is populated by the elements from A in range of indices 0 ---> 0 + some variable.

(that is, given a range of indices in A, how can I copy the elements over that range into a new list B?)

msw
  • 41,609
  • 8
  • 82
  • 107

0 Answers0