Good evening. I have a text file where I have already converted your content to lists. Each line of the file has become a [] list, but now I need those lists all to be inside an array. This way I can not concatenate because there is only one variable saving all lists: Ex:
File contains:
1 'ola' 'ali' 393
2 'ola2' 'ali2' 394
3 'ola3' 'ali3' 395
Then I converted to lists, list = file.split ()
Return:
[1, 'ola', 'ali', 393)
[2, 'ola2', 'ali2', 394)
[3, 'ola3', 'ali3', 395]
So far so good, but now I need to throw all the lists that are inside the variable into an array, so I can scroll through lines and indexes and change as needed. It would have to stay:
array [[1, 'ola', 'ali', 393], [2, 'ola2', 'ali2', 394], [3, 'ola3', 'ali3', 395]]
I ended up doing it in a way that ended up getting each row an array, did not go as expected. The searches I've done always end up joining separate lists and separate variables. I imagine I need to do a line break or something, but I've already lost, I always run into the same examples.
Edit:
Look at the return of this code.
Edit18/10
Iwasabletocreatelistswithinthearray,butit'scolumnlistsandIcannotflip.HowcanIdotochangeeachcolumnbyanindex,getcolumn0ofallindexesandcreateanewlist,thencolumn1andnewlist,soIcanpickthechosenindexwiththecontentthatIwant.ItwouldbeanordinationbutIcannotdoit.Imageofthecodesofar: