I am trying to program in python
I have an array which holds data like
[A,20,False] [B,1,False] [C, 8, False]
I want to be able to loop through the array by getting the element with the lowest middle number so e.g. the next element to be worked on would be B because it has the smallest number one. Then this gets deleted so then the next element to be used would be C because out of 20 and 8 8 is the smallest number...
hope ive made this clear
Please help
Thank you
[[A][20][False]][[B][1][False]][[C][8][False]], or is the content a string like"A,20,False"?