Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Does using the '+' to return extend have any affect on time complexity? Commented Jul 19, 2015 at 3:59
  • 5
    @franklin, see this answer for details: stackoverflow.com/a/28119966/2230844 Commented Jul 21, 2015 at 14:50
  • 3
    I don't see how this answers the question Commented Jul 13, 2018 at 3:20
  • I think list.extend([item]) is more efficient than list.append(item) Commented Aug 26, 2022 at 1:58