Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
What is the difference between append and extend in list in python?
provide specific with examples
1 Antwort
+ 4
append adds a single element/objext to the end of a list while extend adds all the individual elements of another object/list to the end of the list.
http://thomas-cokelaer.info/blog/2011/03/post-2/