Python Dict problems

venu gopal madhuananth at
Tue Feb 3 09:59:19 CET 2004

Hello people,
iam finding great difficulty in handling a two-dimentional dictionary or any 
other similar data structure for the following purpose:
from a collection of words,i need to have the count of each word so if i 
                    for l in range(flen):
                          if subs[l].has_key(str):

for this iam getting an error as "Type error:cannot concatenate str + int"
i would be very grateful to the python-list if any one of you could kindly 
help me in solving this problem.

Easiest Money Transfer to India . Send Money To 6000 Indian Towns. Easiest Way To Send Money Home!

More information about the Python-list mailing list