#!/usr/bin/env python3 a = [10, 20, 30, 40, 50, 60] for i in range(len(a)): print(i, a[i])
Standard input is empty
0 10 1 20 2 30 3 40 4 50 5 60
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!