Zip Question
Victor Subervi
victorsubervi at gmail.com
Fri Oct 9 13:02:20 EDT 2009
Hi;
I have the following code:
elif table[0] == 't': # This is a store subtype table
bits = string.split(table, '0')
sst.append(bits[2])
sstp.append(bits[1])
subtypes = dict(zip(sstp, sst))
When I print these out to screen, I get this:
sst: ['doctors', 'patient']
sstp: ['prescriptions', 'prescriptions']
subtypes: {'prescriptions': 'patient'}
Why do I only get one item from sst and sstp zipped? Why not both??
TIA,
V
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091009/d5cc74fd/attachment.html>
More information about the Python-list
mailing list