I'm really stuck on a basic question. I am trying to take a list of one item and divide it into a list of many items each with a charater length of 10. For example give a list with one item, ['111111111122222222223333333333'], the output would produce:
1111111111
2222222222
3333333333
I feel like this is super simple, but I'm stumped. I tried to create a function like this:
def parser(nub):    
    while len(nub) > 10:  
        for subnub in nub:  
            subnub = nub[::10]
            return(subnub)  
    else:  
        print('Done')
Obviously, this doesn't work. Any advice? Would using a string be easier than a list?
 
     
     
     
     
    