class Bag:
     def __init__(self):
         self.data = []


     def add(self, x):
         self.data.append(x)

     def addtwice(self, x):
         self.add(x)
         self.add(x)

bag = Bag()
bag.add(45)
bag.addtwice(67)

print(bag.data)