I have created a text file in one program, which outputted the numbers 1 to 25 in a pseudo-random order, for example like so:
[21, 19, 14, 22, 18, 23, 25, 10, 6, 9, 1, 13, 2, 7, 5, 12, 8, 20, 24, 15, 17, 4, 11, 3, 16]
Now I have another python file which is supposed to read the file I created earlier and use a sorting algorithm to sort the numbers.
The problem is that I can't seem to figure out how to read the list I created earlier into the file as a list.
Is there actually a way to do this? Or would I be better of to rewrite my output program somehow, so that I can cast the input into a list?