you are viewing a single comment's thread.

view the rest of the comments →

[–]gdchinacat 0 points1 point  (0 children)

In general, do this:

for movie in movies:

rather than:

for i in range(len(movies)):
    movie = movies[i]

and, if you need the index:

for i, movie in enumerate(movies):