My code is something like below
for i in re.finditer('someinteger(.+?)withanother(.+?)', html):
x = i.group(1)
y = i.group(2)
Here x and y related to each other. If I want to index them in an array or something and sort the index based on x how do i approach. Considering index length is only 4 or 5. Meaning (i) will loop for max 4-5 times.
A quick code would be help. No clue with multi arrays.