Created
December 25, 2019 20:47
-
-
Save Fhernd/41bfbd341bfef5510a35e58e2480b16d to your computer and use it in GitHub Desktop.
# Ejercicio 418: Agregar un nuevo elemento a 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 418: Agregar un nuevo elemento a un objeto tupla. | |
numeros = (1, 2, 3, 4) | |
print(len(numeros)) | |
print(numeros) | |
print() | |
numeros_nuevo = numeros + (5,) | |
print(len(numeros_nuevo)) | |
print(numeros_nuevo) | |
print(numeros is numeros_nuevo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment