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