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

Jeff Epler jepler at unpythonic.net
Mon Dec 22 17:11:42 EST 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.

Jeff





More information about the Python-list mailing list