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.

1st May 2019, 10:58 AM
Dmytro Novak
Dmytro Novak - avatar
1 Respuesta
+ 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...
1st May 2019, 11:16 AM
Saranraj C
Saranraj C - avatar