You are viewing a single comment's thread. Return to all comments →
if name == 'main': n = int(input().strip()) arr = list(map(int, input().rstrip().split())) arr_new = arr[::-1] print(*arr_new)
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 →
if name == 'main': n = int(input().strip()) arr = list(map(int, input().rstrip().split())) arr_new = arr[::-1] print(*arr_new)