3 ms·
It's shorter because with +1 you need to write the variable twice. That said, I do prefer Python's += operator over ++.
by icebraining 12y ago
It's shorter because with +1 you need to write the variable twice. That said, I do prefer Python's += operator over ++.
- deleted 12y ago[deleted]
- hollerith 12y agoSomeone reading your comment might be left with the false impression that C does not have the += operator.
- icebraining 12y agoFair enough, I meant Python uses += in lieu of ++, since it doesn't have the latter.