Counting how many chars equal to a given char are in the beginning of a string

Jeff Epler jepler at
Mon Dec 22 23:11:42 CET 2003

On Mon, Dec 22, 2003 at 04:06:44PM -0600, Skip Montanaro wrote:
> Then it looks like a bug in one or the other to me.

Add 'assert len(c) == 1' at the top of mine, then.


More information about the Python-list mailing list