Hey everyone,
I need some help on some simple Python programming, below is my problem:
Identify numbers or words in any .txt file that aren't listed in a provided .txt file and to output those numbers or words that aren't in the text file one per line, in alphabetical or numerical order.
So I basically get any txt file filled with numbers and words that needs to be checked using a specific txt file to see if those numbers and words are in the txt file. And then Python will print out the words and numbers that it doesn't find in the provided txt file.
If I haven't explained myself good enough, I'll try and make it more clearer.
(Python has to open these txt files and read them) A random words.txt file will be created which python then has to open and read, below is an example:
10
caterpillar
34
hello
74
90
79
abrogation
ghanian
55
mirrored
09
Then using a provided example.txt file that would only contain these characters...
abrogation
ghanian
55
mirrored
09
...we have to create a program to output all the words and numbers that it doesn't find in the example.txt file using the words.txt file in alphabetical and numberical order.
How would I go about doing this?