Using the range function or another method in python I would like to calculate all the numbers from 00000 to 99999 where the possible values for a digit in any position could be 0-9 and where the resultant number includes all the leading 0's and must be 5 digits.
So the first number would be 000000 the second 00001 third 00002 to 00009 then 00010 etc.