Re: [Tutor] wordcount.py query

2012-06-27 Thread Steven D'Aprano
On Thu, Jun 28, 2012 at 12:59:45AM +0100, Imran Javeed wrote: > Im trying to replay the code on the python cmd line but keep getting this > error > > >>> w_count[string] = w_count[string] + 1 > > Traceback (most recent call last): > File "", line 1, in > TypeError: cannot concatenate 'str' an

Re: [Tutor] wordcount.py query

2012-06-27 Thread Dave Angel
On 06/27/2012 07:59 PM, Imran Javeed wrote: > Hello > > I have attempted the wordcount.py exercise and am trying to understand the > logic behind the code. > > Im trying to replay the code on the python cmd line but keep getting this > error > w_count[string] = w_count[string] + 1 > Traceback

[Tutor] wordcount.py query

2012-06-27 Thread Imran Javeed
Hello I have attempted the wordcount.py exercise and am trying to understand the logic behind the code. Im trying to replay the code on the python cmd line but keep getting this error >>> w_count[string] = w_count[string] + 1 Traceback (most recent call last): File "", line 1, in TypeError: