[docs] Bug found in count() method

Karthik Veluri karthikveluri19 at gmail.com
Mon Mar 5 06:42:08 EST 2018


The count method for string does not work when the string that is being
counted shares characters with strings that should also be counted.

--> Update the count menthod so that 'sasas'.count('sas') returns 2!

Please tell me if my interpretation is right. Thanks!


Karthik Veluri,
karthikveluri19 at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20180305/905f4c91/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python2.png
Type: image/png
Size: 13279 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/docs/attachments/20180305/905f4c91/attachment-0001.png>


More information about the docs mailing list