Consider the following program:
s="IISER"
print s.count("I")Output- 2
which was expected.
However consider this-
s="IISER"
print s.count("")Output- 6
Why did we get 6 when there are only 5 characters?
Hint : This answer can be got to by trying to emulate count() without inbuilt functions.