i can print the exact time
with
print("list = %.3e "%(t_list.timeit(Ntimeits)/Ntimeits, ))
but how do you put this time value into a variable to compare it to another time
and how come the coma is needed at the end for printing it ?
thanks
i can print the exact time
with
print("list = %.3e "%(t_list.timeit(Ntimeits)/Ntimeits, ))
but how do you put this time value into a variable to compare it to another time
and how come the coma is needed at the end for printing it ?
thanks
(“single_element”, ) forces a tuple, it’s the same as tuple(“single_element”)