<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def printable(data):
 """ Replace unprintable characters with dots. @type data: str @param data: Binary data. @rtype: str @return: Printable text. """

        result = ''
        for c in data:
            if 32 < ord(c) < 128:
                result += c
            else:
                result += '.'
        return result