0

What is the difference between append and extend in list in python?

provide specific with examples

15th Dec 2017, 6:12 AM
bikash behera
bikash behera - avatar
1 Réponse
+ 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/
15th Dec 2017, 6:20 AM
ChaoticDawg
ChaoticDawg - avatar