The Python Bug report

Aug. 30, 2019
1:31 a.m.
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
2119
Age (days ago)
2119
Last active (days ago)
0 comments
1 participants
participants (1)
-
Zahid Ali