12 lines
143 B
Python
12 lines
143 B
Python
|
from timeit import timeit
|
||
|
|
||
|
let l = []
|
||
|
let add = l.append
|
||
|
let pop = l.pop
|
||
|
|
||
|
def func():
|
||
|
add(1)
|
||
|
pop()
|
||
|
|
||
|
print(timeit(func), "list append")
|