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