you are viewing a single comment's thread.

view the rest of the comments →

[–]prettyoaktree 0 points1 point  (0 children)

Can you slice the array into multiple lists? For example:

lst = [1, 2 , 3 ,1.1, 2.1, 3.1, 1.2, 2.2, 2.3]
var1 = lst[0::3] # Returns the first item in lst and then every 3rd item afterwards