List, dictionary and set comprehension introduction
Turn multiple lines of code into single lines with comprehensions
Published in
7 min readSep 10, 2020
While using Python for almost a year now I have regularly come across the word ‘comprehensions’ without necessarily understanding what exactly it meant or what it covered. It is only recently that I discovered that I had readily been using them in my code to generate…