QUESTION 08 #166
문자열 "we are the world!"에서 "world"라는 단어를 "children"으로 바꾸어 출력하는 프로그램을 완성하세요.
main.py
s1 = "we are the world!"
s2 = s1.("world", "children")
print()
HINT
힌트 1: 특정 문자를 다른 문자로 교체할 때는 replace() 함수를 사용합니다.
힌트 2: replace(찾을 문자, 바꿀 문자) 순서로 작성합니다.
실행 결과 예시
we are the children!
INTERACTIVE SHELL
Shift + Enter 로 즉시 실행