Learning about Python list comprehensions
January 16, 2023
I’m learning a brand new programming language. That should probably say, new for me.Because it’s Python. I haven’t touched it before. Yes yes - I’m slow, old and everything. But I am still learning new things… so I’m not all in all bad.
Ok - Python is for the most part very nice to work with and reading and writing code has been easy so far. Until I saw a backwards for
-loop. It just looked… weird.
Turns out it was not a for
-loop at all, but rather a list comprehension.