Question
What is the output of the following?print("xyyzxyzxzxyy".count('xyy', 2, 11))
Answer: Option B
Was this answer helpful ?
Counts the number of times the sub-string 'xyy' is present in the given string, starting from position 2 and ending at position 11.
Was this answer helpful ?
Submit Solution