| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- 수 정렬하기
- data_structure
- 10953
- codesignal
- markdown
- flask
- Counting cells in a blob
- shapeArea
- almostIncreasingSequence
- 파이썬머신러닝완벽가이드
- Python
- 2015 봄학기 알고리즘
- 피보나치 수
- cpp
- collections.deque
- til
- 2750
- baekjun
- Numpy
- recursion
- centuryFromYear
- Daily Commit
- codesingal
- adjacentElementsProduct
- 백준
- All Longest Strings
- Sequential Search
- matrixElementsSum
- C++
- 파이썬 포렌식
Archives
- Today
- Total
Introfor
[hackerRank]sWAP cASE 본문
def swap_case(s):
output = ''
for char in s:
if char.islower():
output += char.upper()
continue
output += char.lower()
return output
if __name__ == '__main__':
s = input()
result = swap_case(s)
print(result)
eASY
'Doing > Python' 카테고리의 다른 글
| HackerRank - Sales by Match (0) | 2020.10.20 |
|---|---|
| Recursion. Finding Maze Path and Counting Cells in a Blob (0) | 2020.09.16 |
| 파이썬 자료형에 따른 주요 연산자의 시간 복잡도 (0) | 2020.09.11 |
| [Algorithm] Recursion (0) | 2020.07.23 |
| [data_structure] Queue (0) | 2020.07.21 |
Comments