My integer input is suppose 12345, I want to split and put it into an array as 1, 2, 3, 4, 5. How will I be able to do it?
12345
1, 2, 3, 4, 5
>>> [int(i) for i in str(12345)] [1, 2, 3, 4, 5]
1.4m articles
1.4m replys
5 comments
57.0k users