DEV Community

Discussion on: Am I wrong with the coding porting Javascript to Python

Collapse
 
valxntine profile image
valentine

I'm not at a machine so I can't test anything right now, but Pythons range() function stops BEFORE the ending number, is this an off-by-one mistake?

Collapse
 
subhanshuja profile image
Subhan Nooriansyah

yup, that rights