Find out how much you can do using just one string method: replace().
Working with strings: basic methods
All in one
Report a typo
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.
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.