if I have a random string A, How can I write a Python code that will output the number of times 'pop' appears in A?
For example if A='vghedfgegopopopaeegdopopopgvepopopop', then the resulting code should output "The number of times pop appears is 7". picture of my code / and I got the wrong answer. I am expecting the occurrence to be 10, not 16.
Can you hint at what I did incorrectly?
Thanks