Putting 0 before 1


Hey guys, i was wondering if it is possible to manipulate this list, so that the numbers would be:

I was thinking of string insert, but the problem is that i only wanna put in the 0 in front of the 9 first numbers, so that i all the way trough the list has two digits.



using python zfill method:


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


You are using actual numbers , so not possible if you convert to strings you can use String.PadLeft.


Marcel, i realised that just after i posted :slight_smile: That is one way to do it as you show. But the Python code i was provided is next level :slight_smile: Thx so much


Simple solution, works like a charm, thx so much