by JeremyBanks · 16y ago · 0 comments
It would be really strange to do
[random.choice(boxes).append(apple) for apple in range(100)]
when even if you wanted to do it on one line the normal syntax works and would be less likely to confuse: for apple in range(100): random.choice(boxes).append(apple)