Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

off-by-one error in python

# This is one of the most common errors when using "for" loops
# Programmers index starts from 0
# But the common use is to start lists of numbers with 1
# So programmers must be careful when indexing due to this mismatch and it is the main reson to off-by-one error
 
PREVIOUS NEXT
Tagged: #error #python
ADD COMMENT
Topic
Name
1+7 =