Previous Up Next

6.41.18  Rajouter un élément à la fin d’une liste : append

append rajoute un élément à la fin d’une liste.
On tape :

append([3,4,2],1)

On obtient :

[3,4,2,1]

On tape :

append([1,2],[3,4])

On obtient :

[1,2,[3,4]]

Previous Up Next