It's frustrating that you can't use the walrus operator in list comprehensions where you can in the unrolled loop.
Not that I would do it often in real code, it's just annoying for when I want to golf.
@mc This is shorter for golfing: `x=[1,2,3];[z for z in x]`
I could be missing some use case where that syntax would allow fewer characters.
@sharif Ah, for keystroke-level golf I agree. But I prefer to do line-level golf, where I pack everything into a giant one liner (so ";" is disallowed). It's a lot of fun.
There is a workaround (that I don't particularly love) for this where you can get one line:
```
(x := [1,2,3], [z for z in x])[1]
```
You can also usually work around it with map/other functional stuff, but it would be so much nicer if I could just do it with a walrus operator.
@mc
Golf! Great term for one-lining/efficiency!