''' How do I calculate the time it takes to run my python script? ''' import time start_time = time.time() # Your Python code here end_time = time.time() total_time = end_time - start_time print("Total time taken: {:.2f} seconds".format(total_time))