Skip to content

Instantly share code, notes, and snippets.

@GoodManWEN
Created March 31, 2021 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GoodManWEN/23274b3bcdd6fbeb352bea9f44b85441 to your computer and use it in GitHub Desktop.
Save GoodManWEN/23274b3bcdd6fbeb352bea9f44b85441 to your computer and use it in GitHub Desktop.
draft_timeit.py
lst = list(range(100))
lst = [i+2 for i in lst]
print(lst)
lst = list(range(100))
for i in range(100):
lst[i] += 2
print(lst)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment