I need to run around 6k .txt files through a python program but i am unable to loop it because it always gives an error message of file not found
I have tried
for i in range(1,len(os.listdir("kepler_data_c03"))):
file="file_"+(str(i))+".txt"
but it says file_1.txt not found although the kepler_data_co3 folder is in the same folder as the python program