I want to find number of times a string present in a string in python
i already tried
my_str = "Hello world all in the world call me tell me"
sum(1 for x in my_str if x="ll")
i want its result as 4
I want to find number of times a string present in a string in python
i already tried
my_str = "Hello world all in the world call me tell me"
sum(1 for x in my_str if x="ll")
i want its result as 4