[Tutor] List all possible 10digit number
etanes.rm at gmail.com
Sat Sep 1 03:08:41 CEST 2012
First of all thank you guys for all your help. The manual is really no substitute for having things explained in laymans terms as opposed to a technical manual.
My question is this- I've been trying for a month to generate a list of all possible 10 digit numbers. I've googled, looked on stackoverflow, experimented with itertools, lists, etc to no avail. The closest I've gotten is using itertools to generate every possible arrangement of a list
List = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
I feel like I'm close but can't quite get it. Any suggestions or shoves in the right direction would be helpful. An issue I've encountered is that python won't do something like
For I in range(1000000000, 9999999999):
Without crashing or throwing an exception.
I've also tried to do something like
I in range (100, 900):
And then concatenate the results but also to no avail.
Again, any shoves in the right direction would be greatly appreciated.
More information about the Tutor