MCPcopy Create free account
hub / github.com/Avisikta-Majumdar/HackerRank_Python_Solutions / Find a string.py

File Find a string.py

Find a string.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1def count_substring(string, sub_string):
2 len_SubString= len(sub_string)
3 result = 0
4 for i in range(len(string)+1-len_SubString):

Callers

nothing calls this directly

Calls 1

count_substringFunction · 0.85

Tested by

no test coverage detected