Arrange the lines to create a timer for the While loop below. Use indentation when needed.
Profiling in Python
Time it
Report a typo
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
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.