Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@nitwhiz With a for each loop iterating over a generator that spits out a range. Because python
-
when you write inc(i) in pascal code
and you never need to deal with diff between post-increment and pre-increment -
I learned this the hard way 😅 Coming from JavaScript. Also
i = i + 1 reassigns i, where i += 1 increments i by 1, they are not equivalent (despite what many stack overflow answers might tell you)
One uses __iadd__ and the other __add__
Related Rants
When u trynna shift from C coding pattern to pythonic 😊
joke/meme
coding style
python