I need to write a function that replaces all occurrences in the string and returns a new replaced string.
def process_string(string):
<...>
return result
process_string('Intern reads a lot of books')
Output:
'junior reads a lot of books'
I need to write a function that replaces all occurrences in the string and returns a new replaced string.
def process_string(string):
<...>
return result
process_string('Intern reads a lot of books')
Output:
'junior reads a lot of books'