Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active August 7, 2019 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/51406caa837dfa2cab44c2c429427f03 to your computer and use it in GitHub Desktop.
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/
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