https://school.programmers.co.kr/learn/courses/30/lessons/181943
프로그래머스
코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.
programmers.co.kr
문제
코드
def solution(my_string, overwrite_string, s):
answer = my_string[:s] + overwrite_string + my_string[len(overwrite_string)+s:]
return answer
'10 어 Ga zi (이모저모고모) > 코딩테스트' 카테고리의 다른 글
[프로그래머스] Python - Lv.0 문자 리스트를 문자열로 변환하기 (0) | 2024.04.17 |
---|---|
[프로그래머스] Python - Lv.0 문자열 섞기 (0) | 2024.04.17 |
[프로그래머스] Python - Lv.0 홀짝 구분하기 (0) | 2024.04.17 |
[프로그래머스] Python - Lv.0 문자열 돌리기 (0) | 2024.04.17 |
[프로그래머스] Python - Lv.0 문자열 붙여서 출력하기 (0) | 2024.04.17 |