Re: Worthwhile to reverse a dictionary
- From: rudysanford@xxxxxxxxxxx
- Date: 14 Dec 2005 10:59:05 -0800
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'}.
.
- Follow-Ups:
- Re: Worthwhile to reverse a dictionary
- From: Kent Johnson
- Re: Worthwhile to reverse a dictionary
- From: Erik Max Francis
- Re: Worthwhile to reverse a dictionary
- References:
- Worthwhile to reverse a dictionary
- From: rudysanford
- Re: Worthwhile to reverse a dictionary
- From: Will McGugan
- Re: Worthwhile to reverse a dictionary
- From: rudysanford
- Worthwhile to reverse a dictionary
- Prev by Date: Re: IsString
- Next by Date: Recommend an E-book Meeting the Following Criteria (Newbie, Long)
- Previous by thread: Re: Worthwhile to reverse a dictionary
- Next by thread: Re: Worthwhile to reverse a dictionary
- Index(es):