I've hit a wall and needed some help or advice to get me through.
I want to append certain strings always apppend to the end of a list.
So we have
List1 = ["sony","cant recall","samsung","dont know","apple","no answer", "toshiba"]
Next we have another list
List2 = ["dont know", "cant recall","no answer"]
Here is what I've developed so far. The script basically checks if the word in List 1 is in List 2, if found, that particular string should be moved from its current location in the list to the end. But all I can do for now is find the string and its index. I dont know how to move and append the found string to the end of the list.
for p, item in enumerate(list1):
for i, element in enumerate(list2):
if item == element:
print item, p
Thanks!