Find a string

  • + 0 comments

    return sum(string.startswith(sub_string,i) for i in range(len(string)-1))