Vidyalelo
Python · Q66

MCQs for Python Strings: Exam

Programming · Python · question 66

Q66

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

A.
2
B.
0
C.
1
Answer
D.
none of the mentioned

Answer: Option C

Solution

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