Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- gs25
- 프로그래머스
- SW Expert Academy
- 맥북
- Git
- 프로그래머스 파이썬
- ChatGPT
- 백준
- dacon
- Docker
- leetcode
- 자연어처리
- Kaggle
- 캐치카페
- 파이썬
- PYTHON
- 편스토랑
- Real or Not? NLP with Disaster Tweets
- 더현대서울 맛집
- hackerrank
- ubuntu
- AI 경진대회
- 편스토랑 우승상품
- 데이콘
- 코로나19
- 우분투
- programmers
- github
- Baekjoon
- 금융문자분석경진대회
Archives
- Today
- Total
솜씨좋은장씨
[BaekJoon] 26040번 : 특정 대문자를 소문자로 바꾸기 (Python) 본문
728x90
반응형
코딩 1일 1문제! 오늘의 문제는 백준의 특정 대문자를 소문자로 바꾸기 입니다.
🧑🏻💻 코드 ( Solution )
def change_some_word_lower(string, words):
answer = []
for word in list(string):
if word in words:
answer.append(word.lower())
else:
answer.append(word)
return "".join(answer)
if __name__ == "__main__":
string = input()
words = input().split()
print(change_some_word_lower(string=string, words=words))
'Programming > 코딩 1일 1문제' 카테고리의 다른 글
[BaekJoon] 25785번 : Easy-to-Pronounce Words (Python) (0) | 2022.11.21 |
---|---|
[BaekJoon] 6324번 : URLs (Python) (0) | 2022.11.20 |
[BaekJoon] 21567번 : 숫자의 개수 2 (Python) (0) | 2022.11.18 |
[BaekJoon] 9948번 : Have you had your birthday yet? (Python) (0) | 2022.11.17 |
[BaekJoon] 6763번 : Speed fines are not fine! (Python) (0) | 2022.11.16 |
Comments