LIST INPUT FROM USER

 



if __name__ == '__main__':
    n = int(input())
    l=list(map(int,input().strip().split()))
    l.reverse()
    for i in range(n):
        print(l[i],end=" ")





Comments

Popular posts from this blog

LOOP, STRING, LIST, CONDITION

CLASS AND OBJECT