Skip to content

Commit cc53e84

Browse files
committed
68차 3번 문제 풀이
1 parent 118ad5f commit cc53e84

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

live6/test68/문제3/박희경.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
def solution(s):
2+
answer = []
3+
4+
s = list(s.split(' '))
5+
6+
for word in s:
7+
if word:
8+
first = word[0].upper()
9+
remain = word[1:].lower()
10+
answer.append(first + remain)
11+
else:
12+
answer.append('')
13+
14+
return " ".join(answer)

0 commit comments

Comments
 (0)