Here is an example of the input list:
[101, 66, 75, 107, 108, 101, 106, 98, 111, 88, 119, 93, 115, 95, 114,
95, 118, 109, 85, 75, 88, 97, 53, 78, 98, 91, 115, 77, 107, 153, 108,
101]

Here is the code I am working on now:
>>> for num in alist:
...     if adict.has_key(num):
...             x = adict.get(num)
...             x = x + 1
                // update the value here
        else
               // add the new value here.
Its these two commented out lines that I am working on. For the record,
I am not in a python class. I am trying to learn python. For one thing
I thought it looks like it would be a good tool to work with math and
statistics stuff. Thanks for the help.
Have a great day.
Ed

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to