a = [10,20,30,40,50]b = a[2:4]print bb[0] = 123print bprint a
Standard input is empty
[30, 40] [123, 40] [10, 20, 30, 40, 50]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!