파이썬

프로그래머스 - 이상한 문자 만들기

tpghks9245 2021. 6. 19. 17:55


# 다른사람 풀이
# def toWeirdCase(s):
# return " ".join(map(lambda x: "".join([a.lower() if i % 2 else a.upper() for i, a in enumerate(x)]), s.split(" ")))