Suppose that we have a string:
s= "He ate my food"
and I use:
>>>s.find("")
0
>>>s.index("")
0
>>>s.count("")
15
>>> len(s)
14
Why does this happen?
Suppose that we have a string:
s= "He ate my food"
and I use:
>>>s.find("")
0
>>>s.index("")
0
>>>s.count("")
15
>>> len(s)
14
Why does this happen?