I have a problem with doing timeit for python. Here is codes
import timeit
>>> iteration_test = """
for i in itr :
pass
"""
>>>
>>> timeit.timeit(iteration_test, setup='itr = list(range(10000))', number=1000)
I tried tab solution but it didn't work. What is the problem?