PYTHON - Please help!
I wrote a code for the polymer chain in python (it looks like the picture in attachment). The chain moves and makes 5000 steps. I need a code which will save the coordinates of the first and last point of the chain in two separate lists after every step. I.e. the chain makes a step (every point of the chain moves in some direction), then the coordinates of the first point in the chain are saved in one list and coordinates of the last point are saved in another list, then the chain makes another step and the process is repeated.
P.s. please don't write irrelevant answers like "try to get answer on stackoverflow or github"
