Skip to content

Instantly share code, notes, and snippets.

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