The index method is used for searching lists to find the index of the first occurrence of a value : Index : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Index »

 

The index method is used for searching lists to find the index of the first occurrence of a value


knights = ['We', 'are', 'the', 'knights', 'who', 'say', 'ni']
print knights.index('who')



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo List
» Index