1start_time = time.time()
2seconds = input("Enter: ")
3seconds = int(seconds)
4
5while True:
6 current_time = time.time()
7 elapsed_time = current_time - start_time
8
9 if elapsed_time > seconds:
10 print("Finished iterating in: " + str(int(elapsed_time)) + " seconds")
11 break