All in one

Report a typo

Find out how much you can do using just one string method: replace().

Match the items from left and right columns
'robot'.replace('o', '_', n)
"".replace("", 'robot')
'robot'.replace('o', "")
'robot'.replace("", " ")
Inserts a substring into the empty line.
Removes substrings from the line.
Replaces n first occurrences of an old substring with a new one.
Adds spacing between letters.
___

Create a free account to access the full topic