Skip to content

Instantly share code, notes, and snippets.

@GitHubEmploy
Created June 3, 2022 17:59
Show Gist options
  • Save GitHubEmploy/60c895c1be4a2590ba833fb6bd6023d0 to your computer and use it in GitHub Desktop.
Save GitHubEmploy/60c895c1be4a2590ba833fb6bd6023d0 to your computer and use it in GitHub Desktop.
import time
s = time.time()
tsum = sum(range(100000000))
print(f'Sum: {tsum}')
print(f'Sum/range: {time.time() - s} seconds')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment