how to check how much time a program took to execute 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'