<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def wrap(s, width=80):
 """ Formats the text input with newlines given the user specified width for each line. Parameters s : str width : int Returns ------- text : str Notes ----- .. versionadded:: 1.1 """

    return '\n'.join(textwrap.wrap(str(s), width=width))