i++ in Python?
Erik Max Francis
max at alcyone.com
Thu Jul 18 19:28:13 EDT 2002
OtisUsenet wrote:
> Python newbie question. How does one do something like this in
> Python:
>
> # assign the value of j to i and then increment j by 1
> i = j++
That should be
i = j
j += 1 # or: j = j + 1
(Ignore my previous message, wasn't thinking.)
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ See the son in your bad day / Smell the flowers in the valley
\__/ Chante Moore
Bosskey.net: Aliens vs. Predator 2 / http://www.bosskey.net/avp2/
A personal guide to Aliens vs. Predator 2.
More information about the Python-list
mailing list