I currently have an assignment I need to do. I am slightly stuck.
How can I read from a file (coordinates.txt), for example with this in it:
500
500
100
100
and somehow get out of that two coordinates, (500,500) and (100,100)?
I know how to do it if each coordinate was on one line, but that's against the specifications, sadly.
I also know how to open and read files, I'm just not sure how to assign 'x' to line 1, 'y' to line 2, 'x' to line 3, etc etc.
The reason for this is to be able to plot the points with the turtle module.