Printing number as string instead of int [solved]

Hey, for this prompt, I used the code
def count_multi_char_x(word, x):
return str(word.count(x))

,and the message at the bottom of the code input center says " count_multi_char_x('mississippi', 'iss') returned 2, expected 2." When I used this on the second example, "print(count_multi_char_x(“apple”, “pp”))

should print 1" My code also returns a value of 1.

Is this an error with my code, or is this just a bug?


Something representing a count should probably be an integer, not text