본문 바로가기
프로그래밍 문제/[Python] CheckIO

[CheckIO] Replace All Occureences

by Physics 2024. 2. 18.
728x90

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)

 

728x90

댓글