You can try using list comprehensions with a combination of joining and splitting:
your_list = [[int(j) for j in i.split()] for i in ' '.join(data).split('<>')]
6
solved breaking a list in to lists in python?
You can try using list comprehensions with a combination of joining and splitting:
your_list = [[int(j) for j in i.split()] for i in ' '.join(data).split('<>')]
6
solved breaking a list in to lists in python?