<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def listsdelete(x, xs):
 """Return a new list with x removed from xs"""

    i = xs.index(x)
    return xs[:i] + xs[(i+1):]