I'm trying to write a simple program that just runs through a list of strings and compares each one to a shorter list of strings that contain some of the same words. I then want to print out all of the words in the long list that aren't in the shorter list. I think I have the right logic but I cant seem to get the printing to work. Here is what I have:
oneList = ['egg', 'duck', 'cow']
twoList = ['egg', 'giraffe', 'cow', 'poo', 'speaker']
for twoString in twoList:
for oneString in oneList:
if (twoList[twoTicker] = oneList[oneTicker]):
#do nothing
else:
#do nothing
#if it reaches end of list and isnt there, print word.