Computer Science/알고리즘 ( Algorithm )
XX 알고리즘 문제 6
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")