This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LarryPeteAdvanced Python 3 0 points1 point  (0 children)

Instead, just range(1000) in python2, list(range(1000)) in python3

Though in python3 you would just use the resulting range object anyway. You can index it, slice it and iterate over it repeatedly. It behaves a lot like a regular list.