Python String Operation: Replace

Viewed 43

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'

0 Answers
Related