Vidyalelo
Python · Q12

MCQs for Python Strings: Exam

Programming · Python · question 12

Q12

Which method is used to replace a substring in a string with another substring?

A.
replace()
Answer
B.
substitute()
C.
swap()
D.
insert()

Answer: Option A

Solution

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