3 ms·
In python, the way you write this is more similar to how we express the intent, using dict/list comprehension. But the thing is, for anything more complex that
by FalconSensei 5y ago
In python, the way you write this is more similar to how we express the intent, using dict/list comprehension. But the thing is, for anything more complex that your example, the comprehension notation is harder to read and make changes if you are not really used to it
- BeFlatXIII 5y agoPythonic for loops are more or less `for item in list: <block of code>`. Sill no manual management of array indices.