7

Pythons range(), honestly makes me want to kill myself.

Comments
  • 1
    Do something else!
  • 1
    Ya should have tagged this rant wk30, mate.
  • 2
    Why exactly?
  • 0
  • 0
    @juzles OCD. Ike if you did range(10) it would go to 9 and it throws me off
  • 1
    @importos welcome to programming. We start counting at 0. Better change your OCD habits :D
  • 0
    @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.
  • 2
    @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 :)
Add Comment