issues with searching through dictionaries for certain values

Connolly cho.hatred at
Fri Feb 1 15:27:40 CET 2008


Right basically I've got to the end of my main section of my program an I've 
got it comparing the same dictionary to ensure that the values are the same 
(sounds stupid I know), yet what my line of code I am using to do this is 
failing to do is to check every single value. It is only checking the final 
value in my dictionary, if you require more info than this feel free to say 
but any help would be appreciated.
Code in use is displayed below.

f4 = files_stored[0]
f5 = files_stored[0]

for key in f4:
    for items in f5:
        if key == items:
            f6 = {start+1: key}
            print key, 'false'

print final_dict

More information about the Python-list mailing list