I have a text file called input.txt with the following contents:
landmark {
x: 0.48397088050842285
y: 0.25201746821403503
z: -0.285147100687027
visibility: 0.9999984502792358
}
landmark {
x: 0.4912211298942566
y: 0.23858927190303802
z: -0.27364951372146606
visibility: 0.9999926090240479
}
landmark {
x: 0.4947235584259033
y: 0.23917287588119507
z: -0.27369818091392517
visibility: 0.9999934434890747
}
How do I write a function that puts each value into a list of lists? For example: list[0] = {0.48397,0.252017,-0.28514,0.999999} list [1] = {0.491221,0.2385892,-0.27364,0.999992} and so on..