>>> a = [0,1,2,3,4,5] >>> [item+1 for item in a] [1, 2, 3, 4, 5, 6] >>> map(lambda x: x+1, a) [1, 2, 3, 4, 5, 6] >>>
Comment