• + 0 comments
    #

    if name == 'main': n = int(input().strip())

    arr = list(map(int, input().rstrip().split()))
    print(*arr[::-1])
    
    the *arr---->> is used to unpack the array or you can simple understand it as * will remove the [ ] <---square brackets and commas