L1=[1,3,4,8,9,12]print (L1)print (L1[0])print (L1[1])print (L1[-1])print (L1[-2])
Standard input is empty
[1, 3, 4, 8, 9, 12] 1 3 12 9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!