<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove(self, child):
 """Remove a child element."""

        for i in range(len(self)):
            if self[i] == child:
                del self[i]