Time it

Report a typo

Arrange the lines to create a timer for the While loop below. Use indentation when needed.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                start = time()
              
                from time import time
              
                end = time()
              
                n += 1
              
                while n < 20000:
              
                print(f"Time consumed: {end - start} seconds")
              
                n = 0
              
___

Create a free account to access the full topic