code: def writeln(self, text, fg='black', bg='white'):
          '''write to the console with linefeed'''
          if not isinstance(text, str):
              text = str(text)
          self.write(text + '\n', fg=fg, bg=bgf writeln(self, text, fg='black', bg='white'):
          '''write to the console with linefeed'''
          if not isinstance(text, str):
              text = str(text)
          self.write(text + '\n', fg=fg, bg=bg)
docs: write to the console with linefeed