Source Code:
(back to article)
names = ['Alice', 'Bob', 'Charlie', 'Dave'] for i, name in enumerate(names): print(f'{i}: {name}')
Result:
Report an issue