Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
You can easily test program speed with timeit, this sample tests a code 1000 times to get an accurate result. The code needs to be in a string. import timeit print(timeit.timeit("iterated code", number=1000)
25th Jan 2019, 9:55 PM
Seb TheS
Seb TheS - avatar