Mastodon Feed: Post

Mastodon Feed

xor@tech.intersects.art ("Parker Higgins") wrote:

teeny python challenge: given a list of 1-4ish strings, what's a tidy way of joining them like:
- a
- a and b
- a, b, and c
- a, b, c, and d

obviously it's hardcodable but it feels like there's probably a nifty little way i'm not thinking of