0
I am trying to get the program to create a list with the name of the files found in the directory and within each entry of this list, create a list of strings with the contents found inside the files
I tried to go debugging the indices the way I knew and concluded that it works the first time I rotate the loop and then it doesn’t work anymore
'''
infos = [[]]
for fileFound in os.listdir('.'):
for i in range(len(os.listdir('.'))):
infos[i].append(fileFound)
textFile = open(fileFound)
infos[i].append(textFile.readlines())
'''