Cutting list python base on condition
Question: For example:

    
    
    my_string='ONETWOTHREEFOURFIVESIXSEVENEIGHTNINETEN'
    

and how to make it become

    
    
    ['ONE','TWO','THREE','FOUR','FIVE','SIX','SEVEN','EIGHT','NINE','TEN']
    

How can I do this efficiently without importing anything?


Answer: 
    lengths = (3, 3, 5, 4, 4, 3)
    
    it = iter('ONETWOTHREEFOURFIVESIXSEVENEIGHTNINETEN')
    
    words = (''.join(next(it) for _ in range(length)) for length in lengths)
    

