You are viewing a single comment's thread. Return to all comments →
if sub_string[0] == sub_string[len(sub_string) - 1]: x = string.count(f"{sub_string}") + 1 return x else: x = string.count(f"{sub_string}") return x
Seems like cookies are disabled on this browser, please enable them to open this website
Find a string
You are viewing a single comment's thread. Return to all comments →
if sub_string[0] == sub_string[len(sub_string) - 1]: x = string.count(f"{sub_string}") + 1 return x else: x = string.count(f"{sub_string}") return x