Python a program that allocates 10 points in a list of MyPoint, initializes to (1, 1), (2,
2), ... (10, 10), and print all the points.
Hints: You need to create an empty list and append each of the 10 MyPoint
instances.
points = []
for I in range(1,11):
points.append(MyPoint(i,i))
Comments
Leave a comment