[Tutor] Counting number of occurrence of each character in a string

Mats Wichmann mats at wichmann.us
Wed Sep 2 10:05:29 EDT 2020


On 9/2/20 7:47 AM, Alan Gauld via Tutor wrote:

> Which brings us back to the OPs post (and several others
> from the same author). Comparing arcane idioms of the core
> language often distracts from the fact that a better solution
> exists in the standard library. Spending time with detailed
> study of the language is usually wasteful compared to time
> spent studying the library. (Of course once you fully know
> the library (does anyone?!) studying the language details
> may be beneficial.

For this, there's a nice site (and now published book, I believe):

https://pymotw.com/3/




More information about the Tutor mailing list