Any way to use a range as a key in a dictionary?

Paul Rubin http
Fri Mar 27 14:20:23 EDT 2009


Carl Banks <pavlovevidence at gmail.com> writes:
> >      if x in theDict:
> >           print x, v
> 
> Where does v come from?

Oops, pasted from original.  Meant of course "print x, theDict[x]".



More information about the Python-list mailing list