08-16-2018, 10:30 PM
Generating a list by [expression(something) for something in some_iteration] is called a "comprehension". Tremendously useful.
If you want to really "grok" python, there are several Youtube videos with Ned Batchelder. He goes into some very important (and often overlooked) concepts.
Python-forum.io is also a a good place to ask general Python questions.
If you want to really "grok" python, there are several Youtube videos with Ned Batchelder. He goes into some very important (and often overlooked) concepts.
Python-forum.io is also a a good place to ask general Python questions.