Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

zip() python

country = ['United States', 'Canada', 'United Kingdom']
currency = ['USD', 'CAD', 'GBP']
list(zip(country, currency))

#output
#[('United States', 'USD'), ('Canada', 'CAD'), ('United Kingdom', 'GBP')]
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
5+1 =