Everyone,
How do I count the number of times a character shows up in a string after a certain point?
Example:
My_string ='abcdefghabcdefgabdeabcaba'
I want to count the amount of times the letter 'a' shows up after the letter 'h'
So the answer should be 5
Well Done is better than well said
- Ben Franklin
How do I count the number of times a character shows up in a string after a certain point?
Example:
My_string ='abcdefghabcdefgabdeabcaba'
I want to count the amount of times the letter 'a' shows up after the letter 'h'
So the answer should be 5
Well Done is better than well said
- Ben Franklin