L = [10, 20, 30, 40]print(L[1:3])
Standard input is empty
[20, 30]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!