Being new to python this has been giving me some trouble
Given a list of integers like
[2, 0, 0, 0, 0, 12, 0, 8]
how might I extract the indiviual digits of each element to form a new list
[2,1,2,8]
I've had the idea of iterating through each element and using the modulo operator but I cant seem to find the correct logic
Any help is very much appreciated