cara menyebutkan nama di dalam daftar ular python

names = ["David", "Sarah", "Matt"]

# i is used for the numbers and name for the names
for i, name in enumerate(names):
# i + 1 so the enumeration starts from one not zero
    print(i + 1 , name)

#output:
# 1 David
# 2 Sarah
# 3 Matt
Inquisitive Ibex