In Python 2.7 if run the following line of code:
print(range(0, 20))
It returns:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
but in 3.4 it returns:
range(0, 20)
I know there are differences between the two versions, I just don't know what they are in this case. Could somebody answer these two questions,
- What is going on to make them different?
- How can I make 3.4 return the list and how can I get 2.7 to return the statement if I wanted it to?