pastebin

Paste Search Dynamic
Recent pastes
list index
  1. # list of items
  2. list = ['mat', 'cat', 'mat', 'bat', 'pet']
  3.  
  4. # Will print the index of 'bat' in list
  5. print(list.index('bat'))
Parsed in 0.003 seconds