You can use the zip
built-in function:
for i, g, t in zip(a, b, c):
Insert into database %i and %g and %t
zip([iterable, ...])
This function returns a list of tuples, where the i-th tuple contains
the i-th element from each of the argument sequences or iterables
You can read the docs for more information
Note:
If your lists are not equally (by length) you can use the izip_longest
from itertools lib.
itertools.izip_longest(*iterables[, fillvalue]) Make an iterator that
aggregates elements from each of the iterables. If the iterables are
of uneven length, missing values are filled-in with fillvalue.
Iteration continues until the longest iterable is exhausted.
For more info about izip_longest, read here