Write a program to find how many times substring “Emma” appears in the given string.
belongs to collection: Python Basic Exercises for Beginners
All Answers
total answers (1)
belongs to collection: Python Basic Exercises for Beginners
total answers (1)
Hint:
Use string method
count()
.Solution 1: Use the
count()
methodSolution 2:Without string method
need an explanation for this answer? contact us directly to get an explanation for this answer