<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def print(self, *args, **kwargs):
 """ Chainable print method. Prints self.data and then clears it. """

        print(self, *args, **kwargs)
        self.data = ''
        return self