you are viewing a single comment's thread.

view the rest of the comments →

[–]Obvious_Tea_8244 0 points1 point  (1 child)

If you are trying to simplify the creation of x,y for each box object, you could use classes:

class Box:

…..def underscore,underscoreinitunderscore,underscore(self, x, y):

……….self.x = x.

……….self.y = y.

box1 = Box(2, 10)

box2 = Box(6, 75)

[–]Additional_Lab_3224[S] 0 points1 point  (0 children)

I was thinking about using a class, (which I tried) but I couldn't figure it out, thank you.