Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created December 25, 2019 20:47
Show Gist options
  • Save Fhernd/41bfbd341bfef5510a35e58e2480b16d to your computer and use it in GitHub Desktop.
Save Fhernd/41bfbd341bfef5510a35e58e2480b16d to your computer and use it in GitHub Desktop.
# Ejercicio 418: Agregar un nuevo elemento a un objeto tupla.
# 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