Sep 21, 2018

[HDGEM] How to process two lists in parallel in Python

The simplest method of  processing two lists in parallel is to use the zip() function. 

Here's an example of the zip() function in action:
for ValueA, ValueB in zip(List1, List2):
print(ValueA, '\t', ValueB)



--
Posted By Blogger to HDGEM at 6/05/2017 10:13:00 AM