[Tutor] what i miss is a C style for loop

James Clare jrclare@lycos.com
Tue Oct 22 11:58:04 2002


considering it's only one more key that's pretty cool.
C: a++
python: a+=1
Thanks, and sorry for being to lazy to look it up! 
--

On Tue, 22 Oct 2002 07:43:05  
 Sean 'Shaleh' Perry wrote:
>On Tuesday 22 October 2002 05:13, James Clare wrote:
>> variable++ would be better than variable = variable + 1
>> Python dosen't have that function does it?
>> Is there a different short hand way to do variable = variable + 1?
>
>a += 1 is all you get.
>
>_______________________________________________
>Tutor maillist  -  Tutor@python.org
>http://mail.python.org/mailman/listinfo/tutor
>


____________________________________________________________
Get 250 full-color business cards FREE right now!
http://businesscards.lycos.com