code: def printable(sequence):
      '''
      Return a printable string from the input ``sequence``
  
      :param sequence: byte or string sequence
  
      >>> print(printable('\\x1b[1;34mtest\\x1b[0m'))
      .[1;34mtest.[0m
      >>> printable('\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x06') == '........'
      True
  
      >>> print(printable('12345678'))
      12345678
      >>> print(printable('testing\\n'))
      testing.
  
      '''
      return ''.join(list(
          map(lambda c: c if c in PRINTABLE else '.', sequence)
      )f printable(sequence):
      '''
      Return a printable string from the input ``sequence``
  
      :param sequence: byte or string sequence
  
      >>> print(printable('\\x1b[1;34mtest\\x1b[0m'))
      .[1;34mtest.[0m
      >>> printable('\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x06') == '........'
      True
  
      >>> print(printable('12345678'))
      12345678
      >>> print(printable('testing\\n'))
      testing.
  
      '''
      return ''.join(list(
          map(lambda c: c if c in PRINTABLE else '.', sequence)
      ))
docs: Return a printable string from the input ``sequence``
  
      :param sequence: byte or string sequence
  
      >>> print(printable('\\x1b[1;34mtest\\x1b[0m'))
      .[1;34mtest.[0m
      >>> printable('\\x00\\x01\\x02\\x03\\x04\\x05\\x06\\x06') == '........'
      True
  
      >>> print(printable('12345678'))
      12345678
      >>> print(printable('testing\\n'))
      testing.