Vidyalelo
Python · Q151

MCQs for Python Strings: Exam

Programming · Python · question 151

Q151

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

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