I\'m trying to modify my list of 2D lists, but as a result of the function, I got somewhat irregular elements.
For example, firstly I have defined my list of lists: