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 devfuria.com.br #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
7+9 =