# your code goes here var = [1, 2, 3]print(var[1])print(var[-1])print(var[:-1])
Standard input is empty
2 3 [1, 2]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!