-
[프로그래머스] 특정 문자 제거하기 - python코딩테스트 2023. 12. 13. 23:35
https://school.programmers.co.kr/learn/courses/30/lessons/120826
프로그래머스
코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.
programmers.co.kr

def solution(my_string, letter): answer = my_string.replace(letter,'') return answerdef solution(my_string, letter): answer = '' for string in my_string: if string != letter: answer += string return answer'코딩테스트' 카테고리의 다른 글
[프로그래머스] 짝수의 합 - python (0) 2023.12.13 [프로그래머스] 양꼬치 - python (0) 2023.12.13 [프로그래머스] 문자 반복 출력하기 - python (0) 2023.12.13 [프로그래머스] 짝수 홀수 개수- python (0) 2023.12.13 [프로그래머스] 직각삼각형 출력하기 - python (0) 2023.12.13