Vidyalelo
Python · Q112

MCQs for Python Strings: Exam

Programming · Python · question 112

Q112

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

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

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board