Q. What is the output of the following program :
Code:
print 'abcefd'.replace('cd', '12')
β
Correct Answer: (B)
abcefd
Explanation: in abcefd , cd is not present so there will not be any change.