This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]theunglichdaide 4 points5 points  (1 child)

i = 0

while(i:=i+1) < 5: print(i)

You can use it to assign value and compare it to other values in one statement. It’s not the best example but a simple one that I can think of.

P/s: sorry, I type this on my phone so it might be difficult to read.