Énumérer Python
languages = ["Python", "C", "C++", "C#", "Java"]
counter = 1
for item in languages:
print(counter, item)
counter += 1
for item in enumerate(languages):
print(item[0], item[1])
for num,lang in enumerate(languages):
print(num,lang)
[print(num,lang) for num,lang, in enumerate(languages)]
armin