All problems
EasyStrings
Count occurrences
Count how many times "na" appears in "banana banana".
- #count
Sample input
"banana banana", "na"
Sample output
4
count-substring.py
Output
Press "Run code" to execute.
Loading…
Count how many times "na" appears in "banana banana".
"banana banana", "na"
4
Press "Run code" to execute.