Python word count (2 files that contains words) (1 file for word count) ( last file to write inside him word+count)

2 txt files that contain words (like lyrics for example) 1 txt file that contain the words I want to count in those 2 files^ 1 txt file that will contain the words + count file1 = open(r’E:\Users\OneDrive\Desktop\python\file1.txt’,’r’) file2 = open(r’E:\Users\OneDrive\Desktop\python\file2.txt’,’r’) file3 = open(r’E:\Users\OneDrive\Desktop\python\words.txt’,’r’) file4 = open(r’E:\Users\OneDrive\Desktop\python\wordsInFiles.txt’,’w’) for word in file3: word = word.strip(“\n”) counter…

Details

Python word count (2 files that contains words) (1 file for word count) ( last file to write inside him word+count)

2 txt files that contain words (like lyrics for example) 1 txt file that contain the words I want to count in those 2 files^ 1 txt file that will contain the words + count file1 = open(r’E:\Users\OneDrive\Desktop\python\file1.txt’,’r’) file2 = open(r’E:\Users\OneDrive\Desktop\python\file2.txt’,’r’) file3 = open(r’E:\Users\OneDrive\Desktop\python\words.txt’,’r’) file4 = open(r’E:\Users\OneDrive\Desktop\python\wordsInFiles.txt’,’w’) for word in file3: word = word.strip(“\n”) counter…

Details