코드
def solution(s):
s = s.lower().split(' ')
answer = ''
for word in s :
answer += ''.join(x.upper() if i % 2 == 0 else x for i, x in enumerate(word)) + ' '
return answer[:-1]
def solution(s):
s = s.lower().split(' ')
answer = ''
for word in s :
answer += ''.join(x.upper() if i % 2 == 0 else x for i, x in enumerate(word)) + ' '
return answer[:-1]