Created
December 26, 2019 16:17
-
-
Save Fhernd/6d41786fc8952bb4b4b82eaa12c2b17d to your computer and use it in GitHub Desktop.
# Ejercicio 433: Invertir el orden de los elementos de un objeto tupla.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ejercicio 433: Invertir el orden de los elementos de un objeto tupla. | |
numeros = (1, 2, 3, 4, 5) | |
print(numeros) | |
resultado = tuple(reversed(numeros)) | |
print(resultado) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment