I'm trying to perform some mathematical functions on the values in the arrays. But I want to do it for more than one file, since it's tedious to use loadtxt for each file. Since each .txt file contains three columns, I want to assign t, x, y as the arrays of those columns. I'm inexperienced in this. I used os.chdir since I'm changing the directory to the files in a specific folder, the problem is defining the arrays.
os.chdir(r"F:\Thermal Motion")
files = dir('*.txt')
for i in range(len(files)):
t, x, y = loadtxt(files(i))