Why doesn't var = [0].extend(range(1,10)) work in python?

Viewed 884

I would think that if i did the following code in python

var = [0].extend(range(1,10))

then var would be a list with the values 0 - 9 in it.

What gives?

4 Answers
Related