[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
Post a Comment

Featured Post

Updated Coupons / promo codes for Google Apps for Work / Business

To redeem: 1. Sign up for Google Apps   2. Go to your billing settings  3. Choose your payment plan  4. Enter your promo code ...