How can I separate values from a multi-dimensional list, and assign them to individual variables using a for-loop? ( Without knowing the number of lists in the list ).
list = [ [ 1 , 2 ] , [ 3 , 4 ] , [ 5 , 6 ] , [ 7 , 8 ] , [ 9 , 10 ] ]
list1 = [ ]
list2 = [ ]
list3 = [ ]
for i in range(len(listA)):
list1.append(listA[0])
output list1:
[ 1 , 2 ]
output list2:
[ 3 , 4 ]