Tag: Code

  • TIL: One-line list manipulation in Python

    โ€”

    by

    in ,

    In Python there’s a one-line syntax for iterating over elements of a list. I’ve always found it looked kind-of odd, and as I need to look it up all the time I decided to write a little TIL on this blog about it. There are more powerful one-liners documented on the Python Wiki.