I am trying to multiply each one of the elements in ranking with it's "corresponding" in no_of_photos, like this:
ranking = [12,4,5,1]
no_of_photos = [25,22,11,9]
i=0
for x in ranking:
print x * no_of_photos[i]
i+=1
How could I do that using list comprehension and increment i ex:
a = [x * no_of_photos[i++] for x in ranking]
Have tried several but no luck, any suggestions?