While trying to remove a list from another list, I m facing the below issue.
element = [['(4.00,4.00)', '(4.00,2.00)'], ['(4.00,4.00)', '(4.00,8.00)'], ['(4.00,4.00)', '(2.00,2.00)'], ['(4.00,4.00)', '(5.00,5.00)']]
toremove = ['(4.00,4.00)', '(4.00,2.00)']
for j in element:
if j == toremove:
element = element.remove(toremove)
print "element",element
Output that i get is None. "element None". Can anyone tell me what goes wrong here.