2011/7/15 Rafael Durán Castañeda <rafadurancastan...@gmail.com>:
> Hello all,
> What's the meaning of using i++? Even, does exist ++ operator in python?

++i is legal Python but fairly useless. It's the unary + operator,
applied twice. It doesn't increment the variable.

Now, i+=1 IS valid Python, and WILL do what a C programmer expects it to.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to