• + 0 comments

    Python Code: simply use * to unpack the list when printing.

    arr = list(map(int, input().rstrip().split()))

    print(*list(reversed(arr)))