dictionary initialization

Caleb Hattingh caleb1 at telkomsa.net
Thu Nov 25 21:52:17 EST 2004


And I haven't even been drinking!

I apologise once more, this is better:

  ***
  # You *must* use a={}, just start as below
  '>>> a={}
  '>>> a['1']=0
  '>>> a['1']+=1
  '>>> a
  {'1': 1}
  ***

  Like I said, I am unsure of what your specific problem is?

  Thanks
  Caleb




More information about the Python-list mailing list