def __mul__(self,n):
        """Replicate self n times, with tag first : TAG * n"""
        res = TAG()
        res.tag = self.tag
        res.inner_HTML = self.inner_HTML
        res.attrs = self.attrs
        for i in range(n-1):
            res += self
        return res
Replicate self n times, with tag first : TAG * n
recipes/Python/366000_HTMLTags__generate_HTML/recipe-366000.py