Last active
August 7, 2019 18:17
-
-
Save parzibyte/51406caa837dfa2cab44c2c429427f03 to your computer and use it in GitHub Desktop.
Agregar dos o más elementos a array / lista en Python 3 - https://parzibyte.me/blog/2018/10/17/agregar-elemento-lista-arreglo-python/
This file contains 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
peliculas = ['Volver al futuro', 'Pulp Fiction', 'Ready Player One'] | |
print("Antes de agregar dos elementos, la lista es:") | |
print(peliculas) | |
peliculas.extend(['El club de la pelea', 'Kung Fu Hustle']) | |
print("Después de agregar dos elementos, la lista es:") | |
print(peliculas) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment