Mar-14-2021, 01:20 PM
I think that if you just remove the indention from the line
print("no of sub_string: ", count)
so that it is no longer a part of the for loop that it will behave the way that you expect it to.