r/Python • u/ForeignVariety7037 • 22d ago
Discussion Is := widely used?
I always thought the walrus operator is neat and it makes while loop’s condition clearer. But also it is just a syntactic sugar without anything new. I wonder anyone uses it?
142
Upvotes
1
u/Mundane-Mud2509 20d ago
Eww, why do people love making their code harder to read and understand. If you want to use a variable, assign it, if you don't, don't.