Notes/PythonTips

edit
revisions

what's new
search
help

kiwi


Python Tips

List comprehensions

  • Instead of using for i in range(len(foo)): foo[i] = something(foo[i]) a lot, try using [something(x) for x in foo]
last modified on September 27, 2005, at 03:35 PM

© type-z.org and its contributing authors, 2001-2004.
Content is licensed under a Creative Commons License.