코딩테스트/Python
프로그래머스 스쿨 - JadenCase 문자열 만들기(Python)(복습)
보안매크로
2023. 10. 7. 10:53
s = "for the last week"
answer = 0
def solution(s):
s = s.split(' ')
for i in range(len(s)):
s[i] = s[i].capitalize()
print(s[i])
answer=' '.join(s)
print(answer)
return answer
solution(s)