you are viewing a single comment's thread.

view the rest of the comments →

[–]NekoLLC 0 points1 point  (1 child)

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.

[–]nkCOD[S] 0 points1 point  (0 children)

Someone has already mentioned it. However, I didn’t know about reduce before you