I'd start with something like this:
final_result = []
for data, target in zip(f, t):
a, b = [elem.strip() for elem in line.split()]
c = target.strip()
final_result.append([[a, b], [c]])
Though I'm not sure why you have the "result" data in single element lists.
--
I enjoy haiku
but s
I am facing the same problem that little complicated.
I have this kind of data in a file and actually it's coming from another class
and it's in formex:0 00 11 01 1and another data which it's in form :0110so now
what I need to put it in form data= [[[0,0],[0]], [[0,1],[1]],
[[1,0]