I have a first .txt file that contains 5 words each on a line, and another one that contains 100 keywords (each on a line too). I want to print for each word, the whole list of terms. Here's what I did :
words = open("./sample_5.txt","r", encoding='utf8')
termes = open("./100_keywords.txt", "r", encoding='utf8')
for w in words:
for t in termes:
print (w,t)
Trouble is, this does not iterate on w, which means it returns to me the first word with the 100keyword and that's it. I should have a matrice of (5,100) and i get (1,100). Any help?