I love the fact that a search for "Windows 98 boot disk" doesn't produce results about the disk or the nostalgia of it, but rather "do you need a win98 boot disk!?". Some things never change #retrocomputing
| Website | https://www.theserpent.co.uk |
| Website | https://www.theserpent.co.uk |
say you have a loop that fills a output list with results of some operation from an input list:
results = []
for item in things:
compute something using item
results.append(result)
there is a more direct way to represent that, by describing what the content of your result list will be, for each item
if you move the things around a bit for you can get
results = [ compute something using item for item in things ]