What is the quickest and cleanest way to convert an integer into a list?
integer
list
For example, change 132 into [1,3,2] an
132
[1,3,2]
First convert the value in a string to iterate it, Them each value can be convert to a Integer value = 12345
value = 12345
l = [ int(item) for item in str(value) ]