SyntaxFix
Write A Post
Hire A Developer
Questions
append is appending an element to a list. if you want to extend the list with the new list you need to use extend.
append
extend
>>> c = [1, 2, 3] >>> c.extend(c) >>> c [1, 2, 3, 1, 2, 3]