4 lines
70 B
Python
4 lines
70 B
Python
>>> "the three truths".count("th")
|
|
3
|
|
>>> "ababababab".count("abab")
|
|
2
|