개발/Algorithm

[Python] 백준 9093번 단어 뒤집기

Dane.Kim 2021. 11. 15.

T = int(input())

for _ in range(T):
    word = list(input().split())
    word_reverse = []
    for i in word:
        word_reverse.append(i[::-1])
    print(*word_reverse)

댓글