Advertisement
here2share

# list_find_index.py

May 6th, 2015
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. # list_find_index.py
  2.  
  3. vals = ['item_00','item_01','item_02','item_03','item_04']
  4. print "The index value of 'item_03' is", vals.index('item_03') # prints 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement