*goggles in shock* that was painful to read! The best I could make of it
was, he's trying to match words in some.txt against a dictionary.
(OP) should not code like a horror movie. Try to avoid dismembering your
variable names and numbering the body parts like a serial killer.
Instead try to pick names that matter. Use functions to hide the gory
complexity..
Maybe like this (I dunno what you are doing)..
dict_file = '/python27/Dictionaryfile'
txt_file_path = '/Python27/*.txt'
def open_file(fname, mode='r'):
lines = open(fname, mode).read()
words = lines.lower().split()
return words
def get_files(path):
file_list = []
for fname in glob.glob(path):
file_list.append(fname)
return file_list
word_list = open_file(dict_file, mode)
file_list = get_files(txt_file_path)
for fname in file_list:
do something and stick this in a func when you know what you were doing
Otherwise you'll get minimal help online because your program is
unreadable.. in-spite of the frivolous comments.