I have some problem in creating a code.
I have two text files one of them is English to spanish.txt and the other is English to Italiani.txt. I have to create language translator to convert an English word to either an Italian word or a Spanish word.
I've tried this code to open 1 txt. file, but I don't know how to open two file in one code and compair the words to find the similar word as explaind above
words_list =  the_file = file("English to Italiani.txt") for line in the_file: words_list = words_list + line.split() print words_list