bugtype 2019. 4. 28. 14:19

Input: “abc 123 apple”

Output: “cba 321 elppa”

def solution(userInput):
    splitStr = userInput.split(" ")
    splitStr = list(map(lambda x: x[::-1], splitStr))
    print(" ".join(splitStr))

solution("abcdef defg 123")