0

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?

Dimitris Fasarakis Hilliard
  • 136,212
  • 29
  • 242
  • 233

0 Answers0