question regarding dictionaries
Rajarshi Guha
rxg218 at psu.edu
Thu Nov 1 10:20:57 EST 2001
Hi,
I have a question regarding dictionaries. When I compare them as
if (dict1 == dict2):
print 'ok'
Where dict1 and dict2 shoudl have the same key and corresponding key values.
It seems to work. Is it meant to work, or am I just being lucky.
And secondly why won't thjis work:
for i,j in list1,list2:
#do something with i and j
TIA
--
-------------------------------------------------------------------
Rajarshi Guha | email: rajarshi at presidency.com
152 Davey Laboratory | web : www.rajarshi.outputto.com
Department of Chemistry | ICQ : 123242928
Pennsylvania State University | AIM : LoverOfPanda
-------------------------------------------------------------------
GPG Fingerprint: DCCB 4D1A 5A8B 2F5A B5F6 1F9E CDC4 5574 9017 AF2A
Public Key : http://pgp.mit.edu/
-------------------------------------------------------------------
A man is known by the company he organizes.
-- Ambrose Bierce
More information about the Python-list
mailing list