I have a given list with points (x, y), which changes during the course of the given function, for example:
arr = [(1, 2), (1, 3), (5, 6), (8, 1)], which is the coordinates of the points (1, 2), (1, 3), (5, 6), (8, 1)
for i in range (5):
arr = function (arr) # different array
After each loop, I would like to draw a graph of coordinates with marked points, i.e. I want to create an animation from it. How can this be done in Python?