Q112
What will be the output of the following Python code snippet? print('abcefd'.replace('cd', '12'))
A.
ab1ef2
B.
abcefd
AnswerC.
ab1efd
D.
ab12ed2
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board