Build a dictionary from two related sequences in Python

>>> t1  =  ( 1 , 2 , 3 )  
>>> t2  =  ( 10 , 20 , 30 )  
>>> print ( dict ( zip ( t1 , t2 ))) 
{1: 10, 2: 20, 3: 30}

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 ...