Explica este código Python
Dificultad: Básico
list = [1, 2, 3, 4]
list.append(10)
print(list)
Enter fullscreen mo...
For further actions, you may consider blocking this person and/or reporting abuse
Respuesta:
[1, 2, 3, 4, 10]append()en Python es un método de listas que se usa para agregar al final de la lista un item nuevo. Si vienes por ejemplos de JavaScript es muy similar a lo que hace el métodopush.