Consider the list
test_list = [14, 12, 10, 8]
I want to remake/split this into
test_list = [1, 4, 1, 2, 1, 0, 8]
I want to split the list into single digits.
Like this? (you want to split the integers)
newList = [int(y) for x in test_list for y in list(str(x))]
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments