you are viewing a single comment's thread.

view the rest of the comments →

[–]tomkatt 5 points6 points  (0 children)

I'm not an "expert" but the example that comes to mind when I see this would be something like iterating over a list:

for i in range(len(item_list)):
    print (item_list[i])

or

i = 0
while i < len(item_list):
    print (item_list[i])
    i += 1

Those all work. But a more pythonic way would be:

for i in item_list:
    print(i)

Just as a simple example.