Q.

What is the output of the following program : print 'abcefd'.replace('cd', '12')

A. ab1ef2
B. abcefd
C. ab1efd
D. ab12ed2
Answer» B. abcefd

View all MCQs in

Python Programming

Discussion

No comments yet