Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

find index of value in list python

start_dates_indexes = [index for index, value in enumerate(headers[0]) if value == 'Start Date']

# This will return the indexes with a value of 'Start Date' 
# 	from the array
Source by www.pythonprogramming.in #
 
PREVIOUS NEXT
Tagged: #find #index #list #python
ADD COMMENT
Topic
Name
9+7 =