I want one long list, say [1,2,3,4,5,15,16,17,18,19] as an example. To initialize this, I try typing:
new_list = [range(1,6),range(15,20)]
However this doesn't do what I want, returning:
[[1, 2, 3, 4, 5], [15, 16, 17, 18, 19]]
When I do:
len(new_list)
It returns 2, instead of the 10 elements I wanted (since it made 2 lists inside the list). Obviously in this example I could just type out what I want, but I'm trying to do this for some odd iterated lists that go like:
new_list = [range(101,6284),8001,8003,8010,range(10000,12322)]
Desiring a 1-D list instead of a list of lists (or whatever it's best called). I'm guessing this is really easy and I'm missing it, but after quite a bit of searching I've come up with nothing too useful. Any ideas?