3 ms·
I often use list comprehensions where I would have previously used a for loop. It means you have less variables and are less likely to have side effects. I woul
by collyw 13y ago
I often use list comprehensions where I would have previously used a for loop. It means you have less variables and are less likely to have side effects. I wouldn't say it is always a bad idea.