I am currently working on a small anagram program that takes all possible permutations of a word and compare them with a dictionary. However, I am unable to get the results to
readlines() doesn't strip the line endings from each line, so each line will have a \n at the end. That causes all your comparisons against compare[j] to fail.