Worthwhile to reverse a dictionary
rudysanford at hotmail.com
rudysanford at hotmail.com
Wed Dec 14 13:59:05 EST 2005
More information about the Python-list mailing list
Wed Dec 14 13:59:05 EST 2005
- Previous message (by thread): Worthwhile to reverse a dictionary
- Next message (by thread): Worthwhile to reverse a dictionary
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
What is the difference between
" d1 = {'A' : '1', 'B' : '2', 'C' : '3'} "
and
" d1 = dict(A = 1, B = 2, C = 3) " ?
All of the dictionary examples I saw (python.org, aspn.activestate.com,
Learning Python by Lutz, among others) use d={'x' : 'y'}.
- Previous message (by thread): Worthwhile to reverse a dictionary
- Next message (by thread): Worthwhile to reverse a dictionary
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list