from __future__ import print_functionimport timeitprint(timeit.timeit('x[5:8]', setup='x = list(range(10))'))
Standard input is empty
0.29082867689430714
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!