We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Tutorials
- 30 Days of Code
- Day 7: Arrays
- Discussions
Day 7: Arrays
Day 7: Arrays
Sort by
recency
|
2003 Discussions
|
Please Login in order to post a comment
import math import os import random import re import sys import copy
if name == 'main': n = int(input().strip())
copia = copy.deepcopy(arr) for i in range(len(arr)): arr[i]=copia[len(arr)-(i+1)]
for elemento in arr: print(elemento, end=" ")
In Java
In "C" one line
Python 3: One line code
[print(i,end=" ") for i in arr[::-1]]