0

I'am wondering if it exist a command by which i can get all instances that have a predefined attributes ? , Here is an example code :

class Doors:
def __init__(self, length, width, color):
    self.length = length
    self.width = width
    self.color = color

after receiving some Doors , i want to get all doors which has the same color !

E Epsylon
  • 56
  • 1
  • 6

0 Answers0