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]
>>>list(map(int, str(number))) #number is a given integer
It returns a list of all digits of number.