[Tutor] increment operator

Alan G alan.gauld at freenet.co.uk
Sat May 28 10:38:00 CEST 2005


> Is there a increment operator in python similar to c++
> like so "SomeVariable++"

No. 
There is the shorthand += assignment but no ++

So x += 1

is the closest thing to x++

HTH,

Alan G.




More information about the Tutor mailing list