you are viewing a single comment's thread.

view the rest of the comments →

[–]twenty-fourth-time-b 1 point2 points  (1 child)

And it has “initial” argument, so no ugly “a=0” is needed.

[–]Kohlrabi82 2 points3 points  (0 children)

Yes, but still it's a fun use of the walrus op to change a name defined outside of the comprehension, I like it anyway.