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