Question
What is the output of the following?print('xyyxyyxyxyxxy'.replace('xy', '12', 100))
Answer: Option B
Was this answer helpful ?
The first 100 occurences of the given substring are replaced.
Was this answer helpful ?
Submit Solution