본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 12606번 Reverse Words (Large)

by 현장 2022. 9. 14.

-Code

for i in range(int(input())):
    line = list(input().split())[::-1]
    print(f"Case #{i + 1}:", end=' ')
    print(*line)