Examveda

What will be the output of the following Python code snippet?
print('abcefd'.replace('cd', '12'))

A. ab1ef2

B. abcefd

C. ab1efd

D. ab12ed2

Answer: Option B


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python