def _sync_code(self):
        new_code = []
        for line in self.lines:
            if isinstance(line, CodeAnswer):
                new_code.append(line.dump())
            else:
                new_code.append(line)
        self.code = '\n'.join(new_code)
Syncs the current state of self.lines with self.code, the
dataset/ETHPy150Open Cal-CS-61A-Staff/ok-client/client/sources/common/interpreter.py/CodeCase._sync_code