I've got a bunch of numbers in a string. I want to split them into individual digits so I can do more with them later.
number = [6, 18, 6, 4, 12, 18, 0, 18]
I want to split these like so.... ex: 6, 1, 8, 6, 4, 1, 2, 1, 8, 0, 1, 8
I've tried split(), I've tried list(str(number)), I've tried converting these to strings and integers and I have tried searching stackoverflow.
In other searches I keep seeing a list comprehension example like this, which I don't understand and don't get the desired result after trying: [int(i) for i in str(number)]
help??