[Python-ideas] string method count()

Julia Kim julia.hiyeon.kim at gmail.com
Wed Apr 25 14:22:24 EDT 2018


Hi,

There’s an error with the string method count().

x = ‘AAA’
y = ‘AA’
print(x.count(y))

The output is 1, instead of 2.


I write programs on SoloLearn mobile app.



Warm regards,
Julia Kim



More information about the Python-ideas mailing list