class Colleccio:
    def __init__(self):
        self.cotxes = []

    def afegir(self, cotxe):
        self.cotxes.append(cotxe)

    def mostrar(self):
        for cotxe in self.cotxes:
            print(cotxe)

    def __len__(self):
        return len(self.cotxes)
