A = [45, 25, 30, 20, -40]print(A[0:5:2])print(A[2:4])print(A[-1], A[-5])print(A[0], A[-5])
Standard input is empty
[45, 30, -40] [30, 20] -40 45 45 45
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!