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
-
@importos welcome to programming. We start counting at 0. Better change your OCD habits :D
-
importos98y@darksideplease But thats the thing. It always throws me off. range doesn't really start at 0, it starts at 1 and goes up to what ever argument you passed minus one. When I'd usually expect for it to go 0,1,2,3,4,5,6,7,8,9,10 instead of 1,2,3,4,5,6,7,8,9. It's just weird for me I guess.
-
@importos i got used to it, you will get used to it. There will be a day where you see a "index out of range" error and you immediately know you forgot to do a -1 or a +1 somewhere :)
Related Rants
Pythons range(), honestly makes me want to kill myself.
undefined
suicidal thoughts
python