Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

valueerror python list

a = [[1,2],[3,4]]
b = [[2,3],[4,5]]

# Works correctly, returns 0
a.index([1,2])

# Throws error because list does not contain it
b.index([1,2])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #valueerror #python #list
ADD COMMENT
Topic
Name
9+6 =