4 ms·
> this is pretty weird in multi lines: [obj.y for obj in my_list if obj.x >3 ] Yeah, it's a shame that Python doesn't allow us to write this as `[for obj in my
by pansa2 2y ago
> this is pretty weird in multi lines: [obj.y for obj in my_list if obj.x >3 ]
Yeah, it's a shame that Python doesn't allow us to write this as `[for obj in my_list: if obj.x > 3: obj.y]`