Searching a List : Index Search : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Index Search »

 

Searching a List


li = ['a''b''new', 'c''z''example', 'new', 'two', 'elements'] 
print li.index("example")                       
print li.index("new")                                
print li.index("c")



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo List
» Index Search