On Fri, Sep 7, 2012 at 12:56 AM, Tigerstyle <[email protected]> wrote:
> I'm trying to write a module containing a function to examine the contents of
> the current working directory and print out a count of how many files have
> each extension (".txt", ".doc", etc.)
If you haven't already, look into the Python 'dict' type; you may find
it easier to work with for this sort of job. You can map an extension
("txt") to its count (4) directly.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list