I have the following python code:
from time import time
def program1(a,b):
for trial in range(5):
start = time()
a + b
print (time() - start)
program1(27,59)
and according to the tutorial should produce this output:
9.53674316406e-07
2.14576721191e-06
2.14576721191e-06
3.09944152832e-06
9.53674316406e-07
Instead it produces:
0.0
0.0
0.0
0.0
0.0
>>>
I am trying to use it demonstrate the concept of time/space complexity.
Can anyone shed any light on the output and why it is not accepting the parameters?