widths = [10, 20, 30]for i, width in enumerate(widths): print(i, width)
Standard input is empty
(0, 10) (1, 20) (2, 30)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!