Vidyalelo
Python · Q32

MCQs for Python Strings: Exam

Programming · Python · question 32

Q32

What will be the output of the following Python code? print("xyyzxyzxzxyy".count('xyy', 2, 11))

A.
2
B.
0
Answer
C.
1
D.
error

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board