take time of the computation of a function in python code example
Example: record the amount of time ittales for code to run python
from time import time
start = time()
#code here
print(f'Time taken to run: {time() - start} seconds'
from time import time
start = time()
#code here
print(f'Time taken to run: {time() - start} seconds'