import random
import timeit
data = [random.randint(-10,10) for i in range(10)]
timeit.timeit('filter(lambda x : x>=0 ,"data")')
As shown in the code. if I try to remove the "" from "data", it would throw an error. Why? There is still a single quote containing the whole filter line. Thank you for helping!!