Vidyalelo
Python · Q93

MCQs for Python Strings: Exam

Programming · Python · question 93

Q93

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

A.
ab12ef12
Answer
B.
abcdef12
C.
ab12efcd
D.
none of the mentioned

Answer: Option A

Solution

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