python how to i++
Python doesn't have i++
you can do:
i++ in c/java returns it's value
while i += 1 does not return a value it just increments
you can do:
i += 1
i++ in c/java returns it's value
while i += 1 does not return a value it just increments
Comments
>>> ++++++i + ++++++i
2
>>> ++i + ++i
2
Talk about weird
0+0+0+0+0+0+i + 0+0+0+0+0+0+i
is the same as i+i and thats 1+1, which is 2