Pytion Script, digit for int list

I have a list. 1…12…1;
I want to make it like [01, 02, 03 … 12]

How can I do it? I was using Python script like following but I failed.


The inputs to this node will be stored as a list in the IN variables.

dataEnteringNode = IN

Place your code below this line

a = ;

for i in IN[0]:
a.append(format(i, ‘03’))

Assign your output to the OUT variable.

OUT = a

but result is [13, 23, 33, 43, 53, 63, 73, 83, 93, 103, 113, 123]
I expected [01, 02, 03. … 12]

OUT = [str(n).zfill(2) for n in IN[0]]

It worked! Thank you.