Let's say you want to measure execution time for math.sqrt() using the command line. You want 200000 repetitions in one loop, and the output should be in seconds. Your statement is math.sqrt(16). How can you pass the arguments?
Timeit module
List comprehension or a for loop?
Report a typo
Match the items from left and right columns
-r-n-s-u200000
sec
"import math"
___
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.