Skip to content

Instantly share code, notes, and snippets.

@dawranliou
Created April 26, 2018 00:00
Show Gist options
  • Save dawranliou/0a8210b4b079a7a9d635c117d0e00bf1 to your computer and use it in GitHub Desktop.
Save dawranliou/0a8210b4b079a7a9d635c117d0e00bf1 to your computer and use it in GitHub Desktop.
>>> range(10)
range(0, 10)
# Use list() to evaluate the range object
>>> list(range(10))
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment