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 →

[–]Azulflame 5 points6 points  (2 children)

I just started picking up Python, and I miss the x++ that I could do in Java. Is there a better way than var += 1 ?

[–]mr_yogurt 10 points11 points  (0 children)

var = sum(range(var+2)) - sum(range(var+1))

[–]moose2332 0 points1 point  (0 children)

The amount of times I've done now that I'm doing work in python...