[docs] The Python Bug report
Zahid Ali
sh.zahidali at yahoo.com
Thu Aug 29 13:31:56 EDT 2019
Dear Python Team,
I find a following issue in python string function.Kindly run the following example and check
Example 1
txt = "Hello, welcome to my world."
x = txt.find("l", 0, 4)
print(x)
Out put is 2------------------------------------------------------------------------Example 2
txt = "Hello, welcome to my world."
x = txt.find("ll", 0, 4)
print(x)
Out put is 2
Conclusion: The my point of view is example 2 answer should be 1 because we find in example #2 'll' double l, so it should be 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20190829/7e160e39/attachment-0001.html>
More information about the docs
mailing list