Title: Iterate Over Multiple Lists Simultaneously
Slug: iterate_over_multiple_lists_simultaneously
Summary: Iterate Over Multiple Lists Simultaneously Using Python.
Date: 2017-02-02 12:00
Category: Python
Tags: Basics
Authors: Chris Albon
In [3]:
names = ['James', 'Bob', 'Sarah', 'Marco', 'Nancy', 'Sally']
ages = [42, 13, 14, 25, 63, 23]
In [4]:
for name, age in zip(names, ages):
print(name, age)