I have 100 text files in a folder that I wanna load into a list. I was only able to load one file. how can I load all the files? Here is what I did
with open('varmodel/varmodel_2.var') as f:
varmodel_2 = f.read()
print(varmodel_2)
However, instead of 2, I have from 1 to 100