Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

prevent list index out of range python

m = [0,1]
try:
  m[3] = 9
except IndexError:
  pass
 
PREVIOUS NEXT
Tagged: #prevent #list #index #range #python
ADD COMMENT
Topic
Name
8+2 =