Skip to content

Instantly share code, notes, and snippets.

@Ventsislav-Yordanov
Last active February 6, 2019 17:23
Show Gist options
  • Save Ventsislav-Yordanov/1ea0d9f4bde52cbbd7272cabf24e5b17 to your computer and use it in GitHub Desktop.
Save Ventsislav-Yordanov/1ea0d9f4bde52cbbd7272cabf24e5b17 to your computer and use it in GitHub Desktop.
import timeit
print(timeit.timeit("x = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)", number = 1000000))
print(timeit.timeit("x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]", number = 1000000))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment