In [48]: def foo(): ....: arr = [] ....: for n in range(100): ....: arr.append(n/3) ....: return arr ....: In [49]: %timeit foo() 10000 loops, best of 3: 22.7 us per loop In [50]: %timeit [n/3 for n in range(100)] 100000 loops, best of 3: 12.9 us per loop