Examveda

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

A. 2

B. 0

C. 1

D. error

Answer: Option A


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python