¡@

Home 

python Programming Glossary: testlist

Python - get position in list

http://stackoverflow.com/questions/364621/python-get-position-in-list

it meets a certain condition. How would I do this Example testlist 1 2 3 5 3 1 2 1 6 for item in testlist if item 1 print position.. I do this Example testlist 1 2 3 5 3 1 2 1 6 for item in testlist if item 1 print position python list share improve this question.. here but it's disappeared. Here i for i x in enumerate testlist if x 1 Example testlist 1 2 3 5 3 1 2 1 6 i for i x in enumerate..