Apr-11-2020, 10:32 AM
My question getting data from txt files. For example, in a folder i have 12 files lile sample01.txt, sample02.txt, sample03.txt, ..... sample12.txt. In each file i have numeric values like 1,3,7 and 8,9,4 in other (different values but equal number in each file).
here the question how can i import them in python and organise in tuple or list objects as data01, data02, data03 etc.
when trying make it i have 2 problems. first after function for importing one file is finished, data is not reachable. Second, how can i manipulate name of lists automatically (like list01,list02.. or data01,data02)
Thank you for answers
here the question how can i import them in python and organise in tuple or list objects as data01, data02, data03 etc.
when trying make it i have 2 problems. first after function for importing one file is finished, data is not reachable. Second, how can i manipulate name of lists automatically (like list01,list02.. or data01,data02)
Thank you for answers