0
What method is fastest and most commonly used for appending elements in the list?
I am wondering which method (append(), extend(), insert() or "+" operator) is fastest and mostly used nowadays in development. I use append() method, but I read an article in which written that extend() is faster. I would be glad to hear what's the SoloLearn community thinks about it. Thanks in advance.
1 Antwort
+ 1
append() is only one element add in end of list..
extend() is more then one element add in end of list...
insert is add a element in first, last,center(any) position....
every method is used to every purposes...