def add_heading(self, text, level=1):
        s = ["\n"]
        s.append(("  "*(level-1), text) % "%s%s")
        s.append("%s%s" % ("  "*(level-1), "-"*len(text)))
        s.append("\n")
        self.Print("\n".join(s))
dataset/ETHPy150Open kdart/pycopia/CLI/pycopia/cursesio.py/UserInterface.add_heading/swapped operands of `%`