siple for in expression

Mike Driscoll kyosohma at
Tue Mar 3 17:34:26 CET 2009

On Mar 3, 10:05 am, "Matko" <IvaStipan... at> wrote:
> Hello!
> Can someone help me to understand the following code:
> uv_face_mapping = [[0,0,0,0] for f in faces]
> Thank You very much!
> Matko from Croatia

That looks like a list comprehension. It basically creates a list by
iterating over some kind of collection. See the following sites for
more info:


More information about the Python-list mailing list