3 ms·
Yes, you just crap up your code by subtracting 1 anywhere you need to calculate an index. I moved from Matlab to Python and the biggest improvement was zero-ba
by markrages 6y ago
Yes, you just crap up your code by subtracting 1 anywhere you need to calculate an index.
I moved from Matlab to Python and the biggest improvement was zero-based indexes.
- pjmlp 6y agoJust like you do with the upper index in zero-based languages , as length > max index. Apparently this little detail is never taken into account.