0

Extend method in Python

Dear Coders, I need somebody to help me with understanding how extend method for lists in python works. Thanks

25th Nov 2018, 1:55 PM
Aime Valentin Nishimwe
Aime Valentin Nishimwe - avatar
2 Réponses
+ 8
Append adds a list as an element. Extend adds the elements of the list. Try it out here https://code.sololearn.com/ctnsbQiiX12h/?ref=app
25th Nov 2018, 2:30 PM
David Ashton
David Ashton - avatar
+ 1
Thank you do much! it really works.
25th Nov 2018, 2:37 PM
Aime Valentin Nishimwe
Aime Valentin Nishimwe - avatar