Skip to content

Instantly share code, notes, and snippets.

@lgarciasbr
Created November 5, 2017 12:33
Show Gist options
  • Select an option

  • Save lgarciasbr/cd603f55d71a7098c9523c023897c57f to your computer and use it in GitHub Desktop.

Select an option

Save lgarciasbr/cd603f55d71a7098c9523c023897c57f to your computer and use it in GitHub Desktop.
# The "timeit" module lets you measure the execution
# time of small bits of Python code
import timeit
timeit.timeit('"-".join(str(n) for n in range(100))',
number=10000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment