Regular expression parsing in Python

July 15, 2009 by John Shafaee Leave a reply »

Need to fill this in…

Some code:

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)

Leave a Reply