Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python zip function

namelist = ["Avish", "Piyush", "Tom"]
agelist = [17, 22, 38]

for name, age in zip(namelist, agelist):
    print(name, age)

# Avish 17
# Piyush 22
# Tom 38
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #zip #function
ADD COMMENT
Topic
Name
7+8 =