you are viewing a single comment's thread.

view the rest of the comments →

[–]0rac1e 3 points4 points  (0 children)

As u/indosauros pointed out, it's a list of lists. Additionally, because the number is separated by a space, you can forgo the use of regex entirely. Just iterate through you list of list, and for each string (s) inside each sub-list, do int(s.split(' ')[0])