[프로그래머스] JadenCase 문자열 만들기

psy4072·2022년 10월 30일
0

Algorithm

목록 보기
12/23

def solution(s):
	a = s.split(' ')
    answer = ''
    
    for i in a:
    	answer += i.capitalize() + ' '
    return answer[:-1]

capitalize()

문자열의 첫글자는 대문자, 나머지는 소문자로 바꿔주는 함수

profile
Ⓓ🅰️🅣🄰 ♡♥︎

0개의 댓글