KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Right now I am tracking my index in side the loop like this index = 0 for entry in longList: if entry == 'foo': print index index += 1 is there a better way to do this?
Tags (comma-separated)
Save Edits
Cancel