https://www.acmicpc.net/problem/2744
#Solution
word = list(str(input()))
answer = []
for character in word:
if character in 'abcdefghijklmnopqrstuvwxyz':
answer.append(character.upper())
else:
answer.append(character.lower())
for character in answer:
print(character, end = '')
'Programming [Python] > 백준 알고리즘 솔루션' 카테고리의 다른 글
#141 백준 파이썬 [1476] 날짜 계산 (0) | 2019.10.11 |
---|---|
#140 백준 파이썬 [2455] 지능형 기차 (0) | 2019.10.11 |
#138 백준 파이썬 [10808] 알파벳 개수 (0) | 2019.10.09 |
#137 백준 파이썬 [1676] 팩토리얼 0의 개수 (0) | 2019.10.09 |
#136 백준 파이썬 [11722] 가장 긴 감소하는 부분 수열 - LIS (0) | 2019.10.07 |