Python: enumerate and zip
A short, tested Python example for enumerate and zip. Copy it and adjust the names and paths for your project.
Python
names = ["a", "b", "c"]
ages = [1, 2, 3]
for i, name in enumerate(names, start=1):
print(i, name)
for name, age in zip(names, ages):
print(name, age)Find it in Zest
Search for “python enumerate and zip” in Zest and this example appears above the results, with other matches to choose from. Searches stay private.