You are viewing a single comment's thread. Return to all comments →
n = int(input()) arr = list(map(int, input().rstrip().split())) i = len(arr)-1 while(i>=0): print(arr[i],end=" ") i=i-1
Seems like cookies are disabled on this browser, please enable them to open this website
Day 7: Arrays
You are viewing a single comment's thread. Return to all comments →
n = int(input()) arr = list(map(int, input().rstrip().split())) i = len(arr)-1 while(i>=0): print(arr[i],end=" ") i=i-1