| Website | https://www.theserpent.co.uk |
| Website | https://www.theserpent.co.uk |
Let's play Presidential #Artemis2 bingo shall we!
👉 He takes credit for the mission success
👉 He blames Biden for any setbacks
👉 He forgets there's a Canadian onboard
👉 He forgets there's a woman onboard
👉 He thinks they're going to Mars
👉 He calls NASA "SpaceX"
👉 He claims to have invented space travel
👉 He states every component was made in the USA
Any others I've missed?
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 ]