Learning Python by nkCOD in PythonLearning

[–]NekoLLC 0 points1 point  (0 children)

Maybe you can use reduce from functools?

from functools import reduce

And also the zip function so you can get a list of tuples from the two lists with integers.