How to select inner faces of square wall

Again, please post code correctly in the forum …


(1) In your example we do not know what “sum” is.

(2) You do not transform the entire face, you apply the transformation to the face’s vertices.
See the code example here …