Here is a stumper for you math geeks out there.
I have a python list that is just a sequence that looks like this:
myList=[1,2,3,4,5,6,7,8,9,10,11,12,13,(...etc...),43]
Unfortunately, the data from which the list was generated was not zero-padded, and it should have been. So in reality:
1==1
2==10
3==11
4==12
5==13
6==14
7==15
8==16
9==17
10==18
11==19
12==2
13==20
14==21
etc. until
34==4
35==40
36==41
37==42
38==43
39==5
40==6
41==7
42==8
43==9
Is there a way that I can remap this list based on the pattern described above. Keep in mind that the list I expect can range from 10-90 items.
Thanks.
edit for clarification:
The list is derived from an XML file with a list of nodes in order:
<page>1</page>
<page>2</page>
etc...
The process that produced the XML used some input data that SHOULD have been zero-padded, but was not. So as a result, what is listed in the XML file as 2 should be interpreted as 10. I hope that helps.