python-exercises/solutions/strings/change_strings.md at main · Python-Geek-Labs/python-exercises

Skip to content

Navigation Menu

Sign in

Appearance settings

Latest commit

File metadata and controls

7 lines (4 loc) · 114 Bytes

Change Strings

Modify the string "cat" to "bat"

Soltuion

"cat".replace("c", "b") OR "b" + "cat"[1:]