hi everybody,
I could not understand why python return different result in len and count founctions?
For example, result of below listed two functions will be :
a = 'hello'
len(a)
5
a.count('')
6
Could you please explain this, why count add one to the result?
Thanks in advance,
Shahin
Created at: 2015/12/30 07:31; Updated at: 2015/12/31 08:01