Jul-02-2020, 03:33 AM
How many dots do you expect to see on the scatter plot when this program is run? 2 or 102?
import matplotlib.pyplot as plt from random import randint x = [5, 10] y = [5, 10] plt.scatter(x, y) for i in range(100): x.append(randint(0,100)) y.append(randint(0,100)) plt.show()