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
  • 150,925
  • 31
  • 268
  • 253

0 Answers0