enumerate() and zip() : Zip : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Zip »

 

enumerate() and zip()


albums = ['q''w''e']

for i, album in enumerate(albums):
     print i, album

fn = ['A''B''C']
ln = ['a''b''c']

for i, j in zip(fn, ln):
     print ('%s %s' % (i,j)).title()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Zip