Examveda

What will be the output of the following Python code snippet?
print('xyyxyyxyxyxxy'.replace('xy', '12', 100))

A. xyyxyyxyxyxxy

B. 12y12y1212x12

C. none of the mentioned

D. error

Answer: Option B


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python