<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def warning(self, amplexception):
 """ Receives notification of a warning. """

        msg = '\t'+str(amplexception).replace('\n', '\n\t')
        print('Warning:\n{:s}'.format(msg))