count() counts pieces that do not overlap. What does print("banana".count("an")) show?
Log in to join the discussion.
Loading…