This is really annoying. I create a sublist with elements from the original list. Then when I mutate the sublist the original list gets mutated too even though they SHOULD be in different objects in different memory locations.
data = [['male', 'weak'], ['female', 'weak'], ['female', 'strong']]
subdata = []
for i in data:
if(i[1] == 'weak'):
subdata.append(i)
subdata[0].pop(0)
print(subdata)
print(data)