Python Forum
Keyword compare in two files and output the results - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Keyword compare in two files and output the results (/thread-7731.html)



Keyword compare in two files and output the results - kotigasp - Jan-22-2018

Hi,

I am new to Python and very beginner. Need help.

I would like to compare the keywords in the format of **_*** (common point in any keyword is _) in two files (one word doc and second notepad) and output the results like matched and unmatched list (of keywords).

The steps are like:
1. search the keyword like **_** in file1 (word doc)
2. compare the step 1 keyword with file2 (notepad)
3. Output the results like matched keyword list and unmatched keyword list.

Any help is highly appreciate!

Thank you...


RE: Keyword compare in two files and output the results - Gribouillis - Jan-22-2018

Hi! Hint: start with a script that simply prints all the words in file 1.


RE: Keyword compare in two files and output the results - buran - Jan-23-2018

what have you tried? we need to see your code (post it in code tags), include full traceback in error tags (if you get one) and ask specific questions.