1 >>> import itertools 2 >>> a = [ 1 , 2 , 3 ] 3 >>> b = itertools.islice(a, 1 , 2 ) 4 >>> for i in b: 5 print (i)
Output: 2