Timeit-Simple-2

Sat 17 May 2025

title: "Timeit Simple 2" author: "Rj" date: 2019-04-20 description: "-" type: technical_note draft: false


import timeit
def some_function():
    return map(lambda x: x^2, range(10))
time1 = timeit.timeit(some_function)
print(time1)
0.39235781200113706
print(time1)
0.39235781200113706

Score: 5

Category: basics