I am using python 2.7. I have 2 long lists:
id=['avc-asd','asd-red'.....]
name=['car','toy',.....]
print len(id) #600
print len(name) #600
my_dict=dict(zip(id,name))
print len(my_dict) #20
print my_dict
#{'avcf-asd':'car','asd-red':'toy'...}
Any idea why truncation happens? :-/
I also tried using izip_longest but i am getting the same result.
    from itertools import izip_longest
        my_dict=dict(izip_longest(id,name))
        print len(my_dict) #20
 
    