프로그래밍 문제/[Python] CheckIO
[CheckIO] Replace All Occureences
UltraLowTemp-Physics
2024. 2. 18. 08:51
1. Problem: https://py.checkio.org/en/mission/replace-all-occurrences/
2. My solutions
def replace_all(mainText: str, target: str, repl: str) -> str:
# your code here
return mainText.replace(target, repl)