Consider the following code defining counts, and the similar counts_by_filename below:
This is a classic case for collections.Counter, and would make a great first pull request!
Example solution initialising the Counter from an iterable:
counts = Counter(... for item in items) # you fill in the ... part
Hello! I'm new to the open source community. Is this something I can pick up and work on?
Absolutely! @-mention me from the PR and I'll be happy to review it for you :smiley:
Great! Will do. Thanks!
Most helpful comment
Great! Will do. Thanks!