I would like to loop through a list in python and usually I do in this way:
let's imagine a list into a variable called 'movie' where I want to print the even into a variable 'authors' and the odd into 'stars'. I would do like this:
stars = movies[0] #print the first
authors = movies[1] #print the second
for i in range(0, len(movies), 2):
stars = movies[0+i]
authors = movies[1+i]
But how can i do in this other way?
stars, authors = movies[0:2]
for i in range(0, len(movies), 2):
stars #how can i insert "i"?