So I got this program, but I have to put the output to a text file. Someone told me to change the print-command in the for-loop to something like durchschnitt_x.write(). I tried