def __init__(self): self.mtd([1, 2, 2, 3, 3, 3, 4, 4, 4, 4]) def mtd(self, data): for value in data: print(value)